Takes a string of nums and works down to single num