Adjust chunking based on whether the replacement contains the search string.