fatal bugfix

Did not previously consider cases when the number was greater than 1000.
In these cases, it would only extract the digits up to but not including
the first appearing comma.