A better trim_leading_zero function