The EasyRichText widget provides an easy way to use RichText. You do not have to split the string manually.