to check whether vowel or consonant