add sub in preparation for single input to perform multiple replacements