Find the length of the longest non-repeating substring.