updated Word to remove unnecessary variable newWord, replaced it to return modified String letters