length of sub string with no repeat