remove trailing zeros