code: public static String subst(final String string, final String replace[],
              final char token)
     {
        return subst(new StringBuffer(), string, replace, token);
     }
docs: 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.