I want to replace multi-words in a single string with one word. I tried this but only first word is replacing.
Here is the code.
function addReplacemen