max consecutive substring