public static String remove(String str, String remove) {
        if (isEmpty(str) || isEmpty(remove)) {
            return str;
        }
        return replace(str, remove, EMPTY, -1);
    }
<p>Removes all occurrences of a substring from within the source string.</p>

<p>A {@code null} source string will return {@code null}.
An empty ("") source string will return the empty string.
A {@code null} remove string will return the source string.
An empty ("") remove string will return the source string.</p>

<pre>
StringUtils.remove(null, *)        = null
StringUtils.remove("", *)          = ""
StringUtils.remove(*, null)        = *
StringUtils.remove(*, "")          = *
StringUtils.remove("queued", "ue") = "qd"
StringUtils.remove("queued", "zz") = "queued"
</pre>

@param str  the source String to search, may be null
@param remove  the String to search for and remove, may be null
@return the substring with the string removed if found,
 {@code null} if null String input
@since 2.1
android/android_framework/base/src/main/java/lang3/StringUtils.java