public String replace (CharSequence target, CharSequence replacement)

Replaces each substring of this string that matches the literal target sequence with the specified literal replacement sequence. The replacement proceeds from the beginning of the string to the end, for example, replacing "aa" with "b" in the string "aaa" will result in "ba" rather than "ab".

target    The sequence of char values to be replaced
replacement    The replacement sequence of char values

Returns:  The resulting string

NullPointerException    if target or replacement is null.

Since:  1.5