from search.string_node_list import StringNodeList
from search.string_node_iterator import StringNodeIterator

new_list = StringNodeList("T*****hhhis is a bold ttttes@#$@t")
new_iterator = StringNodeIterator(new_list.node_list[0])

string_list = []
empty_string = ''

while new_iterator.has_next():
    string_list.append(new_iterator.next_alpha().value)
print(empty_string.join(string_list))
string_list = []
new_iterator.reset()

while new_iterator.next_alpha() is not None:
    string_list.append(new_iterator.cur.value)
print(empty_string.join(string_list))
string_list = []
new_iterator.reset()


while new_iterator.next_uniq_alpha_char() is not None:
    string_list.append(new_iterator.cur.value)
print(empty_string.join(string_list))

