can convert a string of multiple numbers into an integer in an array