Removing a duplicate phrase
<p>I'm looking to remove duplicate phrases from any give string.</p>

<p>Example:</p>

<pre><code>My_First_Post_My_First_Post.htm
</code></pre>

<p>Would have the phrase "My_First_Post" in there twice, thus becoming:</p>

<pre><code>My_First_Post_.htm
</code></pre>

<p>Any easy way to do this?</p>
