title: Remove a common word from each string value in an array
body: <p>I am populating an array dynamically which is based on all the <code>id</code>s on the page's <code>video</code> tags.</p>
  
  <p>How can I remove the word <code>dog</code> from each array item's value? Here is the populated array so far, I just need to remove the word <code>dog</code> for each array item:</p>
  
  <pre><code>var players = new Array();
  $("video").each(function(){ 
      players.push($(this).attr('id'));
  });
  </code></pre>
  
  <p>So it would go from:</p>
  
  <pre><code>["video_12_dog", "video_13_dog"]
  </code></pre>
  
  <p>to:</p>
  
  <pre><code>["video_12", "video_13"]
  </code></pre>