added feature to remove leading 0s if there are extras