Remova os zeros do começo e final

a_string = a_string.strip("0")
Bright Butterfly