Add pattern replacements