div class="line">PRINT REPLACE$(&quot;banana&quot;, &quot;na&quot;, &quot;nana&quot;)       &#39; -&gt; bananana</div>
<div class="line"> </div>
<div class="line">&#39; Empty needle: no change</div>
<div class="line">PRINT REPLACE$(&quot;abc&quot;, &quot;&quot;, &quot;Z&quot;)               &#39; -&gt; abc</div>
</div><!-- fragment --><p><b>See also</b></p>
<ul>
<li><a class="el" href="INSTR.html">INSTR Function</a> - find substring position</li>
<li><a class="el" href="MID.html">MID$</a> - substring by ran