Correcting index problem when we iterate on the string IN, and remove 'break' unnecessary which cause come troubles