Spell check, and refactor duplicated code into a new method