Remove redundant lines for '0' digits