public static StringBuilder replace(StringBuilder sb, String[][] mxStrings)
    {
        for (int x = 0; x < mxStrings.length; x++)
        {
            if (mxStrings[x].length != 2)
                return sb;
            sb = Utility.replace(sb, mxStrings[x][0], mxStrings[x][1]);
        }
        return sb;
    }
public static StringBuilder replace ( StringBuilder sb , String [ ] [ ] mxStrings ) { for ( int x = 0 ; x < mxStrings . length ; x ++ ) { if ( mxStrings [ x ] . length != 2 ) return sb ; sb = Utility . replace ( sb , mxStrings [ x ] [ 0 ] , mxStrings [ x ] [ 1 ] ) ; } return sb ; }
Replace every occurrence of the strings in the hashtable with the new data.
This method assumes that the hashtable contains the keys which must be replaced with the associated values.
NOTE: This method might be re-worked to search the string for the delimiter character rather than
calling replace for each param.
@param string The original string.
@param ht The table of old/new values.
@return The new string.