If I have these strings:
\"abc\" = false
\"abc\"
false
\"123\" = true
\"123\"
true
\"ab2\"
You can use TryParse to determine if the string can be parsed into an integer.
int i; bool bNum = int.TryParse(str, out i);
The boolean will tell you if it worked or not.