Checking that the input string is a number