Corrected isAlphaNumeric method.