you can assume that if a letter is not a vowel, it is a consonant. That is you can assume that in your sentence there are no punctuation, numbers or any other non-letter characters. thanks, -- Mikhail