Removing specific duplicated characters from a string in Python : <p>How i can delete specific duplicated characters from a string only if they goes one after one in Python? For example:</p>

<p>A have string</p>

<pre><code>string = "Hello _my name is __Alex"
</code></pre>

<p>I need to delete duplicate _ only if they goes one after one __ and get string like this:</p>

<pre><code>string = "Hello _my name is _Alex"
</code></pre>

<p>If i use set i got this:</p>

<pre><code>string = "_yoiHAemnasxl"
</code></pre>
