Weird string stripping
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/6311968/python-rstrip-removes-one-additional-character">python .rstrip removes one additional character</a>  </p>
</blockquote>



<p>i have a string <code>vtype</code> defined as</p>

<pre><code>vtype = "vidis.fit"
</code></pre>

<p>i want to strip the final <code>dis.fit</code> away, so</p>

<pre><code>vtype.rstrip("dis.fit")
</code></pre>

<p>but the end result is <code>v</code>, rather than <code>vi</code>, the one I expected/wanted. I'm a bit confused about this, anyone?</p>

<p><strong>EDIT</strong></p>

<p>Thanks everyone. I guess the reason why it confused me in the first place is that, the naming of <code>lstrip</code> and <code>rstrip</code> seems suggesting some sequence, although it only matters to white spaces.</p>
