added basic highlighted text replacement