public static String replace(String string, String strOldParam, String strNewData)
    {
        if (string == null)
            return null;
        StringBuilder sb = new StringBuilder(string);
        return Utility.replace(sb, strOldParam, strNewData).toString();
    }
public static String replace ( String string , String strOldParam , String strNewData ) { if ( string == null ) return null ; StringBuilder sb = new StringBuilder ( string ) ; return Utility . replace ( sb , strOldParam , strNewData ) . toString ( ) ; }
Replace every occurrence of this string with the new data.
@param string The original string.
@param strOldParam The string to find.
@param strNewData The data to replace the string with.
@return The new string.