while current_char in char_set and should_advance:
        index += 1
        current_char = content[index]
        should_advance = index+1 < len(content)