How to replace multiple occurrences of a particular word from a string