fix bugs(longest substring without repeating character)