implement String iterator