Create longest_substring