Useful text related functions that can be done on the selected text