src/main/java/org/jboss/util/Strings.java
/**
    * 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
    */
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
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
public static String subst(final String from, final String to,
      final String string)
   {
      return subst(new StringBuffer(), from, to, string);
   }
public static String subst ( final String from , final String to , final String string ) { return subst ( new StringBuffer ( ) , from , to , string ) ; }
Substitute sub-strings in side of a string.
Substitute sub - strings in side of a string .