def sum(string: String): Int = {
def sum(string: String): Int =
var retVal = 0
string split "#" map { _.toInt } sum