Pythonic way to strip all 0's from the front of a string
<p>I have a string that will later be converted with <code>int()</code>. It is three digits, anywhere from 0 to 3 of them might be 0's. How would I strip the 0s from the left side of the string?</p>

<p>Now I'm using <code>string.lstrip('0')</code> but that strips all the 0s and makes the string empty, causing an error.</p>
