Change < to <= in case of same len