adds textReplace operation