src/main/java/org/jboss/util/Strings.java
/**
    * Substitute index identifiers with the replacement value from the
    * given array for the corresponding index.
    *
    * @param string     String substitution format.
    * @param replace    Array of strings whose values will be used as 
    *                   replacements in the given string when a token with
    *                   their index is found.
    * @param token      The character token to specify the start of an index
    *                   reference.
    * @return           Substituted string.
    */
Substitute index identifiers with the replacement value from the
given array for the corresponding index.

@param string     String substitution format.
@param replace    Array of strings whose values will be used as
replacements in the given string when a token with
their index is found.
@param token      The character token to specify the start of an index
reference.
@return           Substituted string.
Substitute index identifiers with the replacement value from the given array for the corresponding index . @param string String substitution format . @param replace Array of strings whose values will be used as replacements in the given string when a token with their index is found . @param token The character token to specify the start of an index reference . @return Substituted string .
public static String subst(final String string, final String replace[],
      final char token)
   {
      return subst(new StringBuffer(), string, replace, token);
   }
public static String subst ( final String string , final String replace [ ] , final char token ) { return subst ( new StringBuffer ( ) , string , replace , token ) ; }
Substitute index identifiers with the replacement value from the
 given array for the corresponding index.
Substitute index identifiers with the replacement value from the given array for the corresponding index .