test for string iterator