add method that converts the string into an array and then sums the array