eliminar los ceros del principio y el final

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