naive spell checking algorithm