Update Length of Longest Substring