Word edit - improve error handling
Rename wordsEdit to wordEdit