title: Flexible replace substring - Scheme
body: <p>Is there, in Scheme, a good way to replace a substring of a string with another string, the length of which could vary? I am looking for something similar to this:</p>
  
  <pre><code>(replace-all string pattern replacement)
  (replace-all "slig slog slag" "g" "ggish")
      =&gt; "sliggish sloggish slaggish"
  </code></pre>