Add Replace with pattern variables