Refactored spellcheck into separate methods