isalpha
documentation:
Return value
Non-zero value if the character is an alphabetic character, zero otherwise.
You should be either checking for not equal to 0 instead of true, as its not necessarily guaranteed to be 1
~= true
, or removing the comparison entirely
Also make sure that your loop condition is < and not "& lt" without the space unless that's a weird formatting issue
For more information, make sure to check the documentation for the standard library functions