How can you check if the whole string is a number?
You can check if a string contains a number with regular expression. Can you use regular expressions as well to find out if a string is only a number, without any other characters?
"abc" is supposed to be false, it's not a number
"abc12" is supposed to be false, it's not a number
"123" is supposed to be true