improve the leet, longest substring without repeating chars