remove zeroes from beginning and end code example Example: remove zeroes from beginning and end a_string = a_string.strip("0")