wrap selected text with string or html tag