Work easier with strings in C# using StringExtensionMethod
Checks if string's charaters are a number, if you pass a length, it will check if your string is a number with a fixed length
Checks if string has a defined length
Checks if strings is as boolean characters such as "t", "y", "1" or "true"
Don't worry about XSS attacks. Simply pass your string with this method and dangerous characters will be replaced.