Remove leading and trailing matches from this Text, and reset the selection to the stripped content
See Implementation
Remove leading and trailing matches from this Text, and reset the selection to the stripped content