Used 'SetFormattedText' instead of 'SetText' and removed some string concatenations.