ReplacementDict.replace: use doctest-compatible docstring