wordIter1.setText(str1);
if (!wordIter1.getText().equals(text1))
errln("ERROR:1 error in setText or getText ");
if (wordIter1.current() != 0)
errln("ERROR:1 setText did not set the iteration position to the beginning of the text, it is"
+ wordIter1.current() + "\n");
wordIter1.next(2);
wordIter1.setText(str2);
if (wordIter1.current() != 0)
errln("ERROR:2 setText did not reset the iteration position to the beginning of the text, it is"
+ wordIter1.current() + "\n");