Patch 3

Some speed optimization.

"It should be noted that ctype functions are always preferred over regular expressions, and even to some equivalent "str_*" and "is_*" functions. This is because of the fact that ctype uses a native C library and thus processes significantly faster."

http://php.net/manual/en/intro.ctype.php