That would be down to how to display the text rather than how you create it.
For example, if you are displaying the String in a Text widget, you could click into the Appearance tab of the widget and set a Weight, or use the Class / Style properties to change this.
https://docs.mendix.com/refguide/common-widget-properties/#class
Hope this helps.