Added wrapSelectedWords function to support making all words selected superscrip instead of just the first word.