title: Is there a way to add a css style class to a Java String inline
body: <p>Is there a way to add a css class to a Java String inline?</p>
  
  <p>To add a class to a Label:</p>
  
  <pre><code>String siteNameText = "This is : ";
  String siteName = "StackOverflow.com";
  Label siteNameLabel = new Label(siteNameText + siteName);
  siteNameLabel.getStyleClass().add("site_name_bold");
  </code></pre>
  
  <p>Is there a way to add the style class only to <code>"StackOverflow.com"</code> in <code>siteName</code>? The only other option would be separating them by placing them into two different Labels.</p>