added function to parse ints from a string of numbers separated by a comma