title: Delete character from string in Prolog
body: <p>I need to remove a character from a string. For example:</p>
  
  <pre><code>?- remove_char('abcde', 'c', X).
  X = 'abde'
  
  ?- remove_char('abcdefgh', 'f', X).
  X = 'abcdegh'
  </code></pre>
  
  <p>I'm looking for a concise way of accomplishing this, but I have no success. I'm new to Prolog and I'm having a very hard time dealing with strings if I don't want to convert them to lists. Is there a built in function for this, or at least a parsimonious way?</p>