Fixed problem with detecting if a word is entered twice. Also better string splitting for the text entry