added wrapSelectedTextWithPairCharacters