Added test for when a number is higher than 1000
Changed toInt function so that numbers > 1000 are ignored