code: public static String getString(IMolecularFormula formula, boolean setOne) {
  
          if (containsElement(formula, formula.getBuilder().newInstance(IElement.class, "C")))
              return getString(formula, generateOrderEle_Hill_WithCarbons(), setOne, false);
          else
              return getString(formula, generateOrderEle_Hill_NoCarbons(), setOne, false);
      }
docs: Returns the string representation of the molecular formula.
  Based on Hill System. The Hill system is a system of writing
  chemical formulas such that the number of carbon atoms in a
  molecule is indicated first, the number of hydrogen atoms next,
  and then the number of all other chemical elements subsequently,
  in alphabetical order. When the formula contains no carbon, all
  the elements, including hydrogen, are listed alphabetically.
  
  @param  formula  The IMolecularFormula Object
  @param  setOne   True, when must be set the value 1 for elements with
  one atom
  @return          A String containing the molecular formula
  
  @see #getHTML(IMolecularFormula)