fix multiple replacements in search/ replace

There is a check in the search/ replace function to ensure the input length is the same as the match length.
The docs state that the input is "The text to search in". Therefore the length should be irrelevant.