replaceSurroundingText changed semantics.