search and replace highlighted text