Added a space check for alphabets