add lengthoflongestsubstring