Added function to sum digits of input string, tests pass