add substring without repeating char