string to iterable of char in for loop