Find all occurrences of a sub-string within a string and replace them with another sub-string