I moved the case swap code into isWord() itself