title: Remove a fixed prefix/suffix from a string in Bash
body: <p>In my <code>bash</code> script I have a string and its prefix/suffix. I need to remove the prefix/suffix from the original string.</p>
  
  <p>For example, let's say I have the following values:</p>
  
  <pre><code>string="hello-world"
  prefix="hell"
  suffix="ld"
  </code></pre>
  
  <p>How do I get to the following result?</p>
  
  <pre><code>result="o-wor"
  </code></pre>