Replace words with a selected word by clicking