add iterators for string class