Improved normalization of selected text