simplify 0/1 length spans