title: Remove substring from string if substring is contained in a list
body: <p><strong>Problem:</strong>
  I have a string that has "tags" from a list called "listOfTags". If the string contains one of these "tags" from the list I want to be able to remove these "tags" from the string. </p>
  
  <p><strong>What I tried:</strong>
  I  first tried traversing through "listOfTags" and appending each "tag" to an empty string variable called x. Then, I tried to remove the "tags" from another string variable called y by using the string.replace method.I then realized that this method would only return what I wanted if the "tags" appeared in the order that they were appended in the variable x. </p>
  
  <p><strong>The algorithm I created is as follows:</strong> </p>
  
  <p><em>if a string contains as a sub-string any strings specified in a particular list: 
      remove the substring from the string</em></p>
  
  <p><strong>An example of the problem:</strong> </p>
  
  <pre class="lang-py prettyprint-override"><code>listOFTags = ["#tag", "#bold", "#merge"] 
  
  string = "#tag #bold bob #merge" 
  
  #execute algorithm here
  </code></pre>
  
  <p>How do I get a string returned that has the text "bob"?</p>
  
  <p><strong>What I want returned:</strong> </p>
  
  <pre class="lang-py prettyprint-override"><code>new_string = "bob"
  </code></pre>