white-space:nowrap">s:<a class="type" title="String - The basic String class." href="../../String.html">String</a>,</span> <span style="white-space:nowrap">sub:<a class="type" title="String - The basic String class." href="../../String.html">String</a></span>):<a class="type" title="String - The basic String class." href="../../String.html">String</a></code></h3><div class="doc"><p>Removes occurrences of a substring by calling <code><a href="../../StringTools.html#replace">StringTools.replace</a>(s, sub, ""