Replace escape pattern