Refactor for Longest Substring Without Repeating Characters