passClasses: add docstring to ReplacementDict.replace