As one of the posters in itpragan's link says, it's better to use regular expressions for these types of test.
The "charAt" approach is bulky and not as capable.
Airshow
Airshow
WiFi Lounge Lizard
2,682 posts since Apr 2009
Reputation Points: 321
Solved Threads: 372