What's the best way to check if input is not a number