method takes a string and returns sum of numbers in string
tests if an empty string is passed, 0 is returned