Improve spell check functions