This functionality does not run in MATLAB.
stringlib::remove(string1, string2, <First>)
With stringlib::remove, a substring can be deleted from another string.
After string2 has been found, the search for further occurrences of it continues after its last letter; hence only the first of several overlapping occurrences is detected. See Example 3.
By default, out of several occurrences of the given substring all are removed.
Using the option First causes stringlib::remove to remove only the first occurrence of the given substring.
stringlib::remove("abcdeabcdeabcde", "bc", First)
In the following example, the given substring occurs twice, where both instances of it do overlap. Only the first occurrence is removed.