Prefer [:alpha:] and [:alnum:]

`[:alpha:]` and `[:alnum:]` character classes are available instead of `[...]`.  They are faster because implemented in C level.