remove leading and trailing zeros in the string 'your_strip',your_string.strip('0')