Add a text region replace method