ReplacementDict.fromstring: add docstring