the longest consecutive sequence of string