New text manipulation functions

Refer to the following example code to see how to use new text manipulation functions.