Set color using string
Refer to the following example code to learn how to use string to set colors for formatting.