modified isvowel to use elem function