Sums the numbers in the array after having converted the string to an array