Avoid performing the explode operation each time isConsonant is called