Write an Algorithm in Python that takes in a comma-separated string of numbers and returns the sum of the numbers.
'1,2,3'
def sumString(s):
 nums = s.split(',')
 total = 0
 for num in nums:
 total += int(num)
 return total