Edits to checkWord()