Parsing text to styled and non styled text of TreeItem doesn't work properly

When the TreeItem's text is parsed, it assumes that between styled and non styled text is a space.