Fix number parsing code

I was looking at this code and wondering why the Number calls weren't inside the stringReadingToNum function, and then I realized that the parameter to that function was being ignored, so I decided to fix both things at once.