Rewrite selectionExpandToWord