code: public static String subst(final String from, final String to,
              final String string)
     {
        return subst(new StringBuffer(), from, to, string);
     }
docs: Substitute sub-strings in side of a string.
  
  @param from String to substitute from
  @param to String to substitute to
  @param string String to look for from in
  @return Substituted string