Moved vowel checking steps to a function in VowelCounter.java