code: public static String buildToolbar(String buttonString) {
  
          StringBuilder toolbar = new StringBuilder();
          String[] buttons = buttonString.split("\\,");
  
          String button;
          for (int i = 0; i < buttons.length; i++) {
              button = buttons[i];
              toolbar.append(button + " ");
          }
          return toolbar.toString();
      }
docs: Builds toolbar javascript file for TinyMCE.<p>
  
  @param buttonString button names and block separators delimited by comma
  
  @return returns the toolbar buttons