Your replace is for a substring no matter its context.
Put the Strings into a context by adding delimiters before and after the String. For example spaces: " and ".
There could be lots of...