check for input string characters in alphabet