text iterator and string
<p>i wonder if there is anyway to convert a <strong>string</strong> into a <strong>text iterator</strong> then removing any desired tokens? supposed the string comes from a <em>node's text content</em>, then want to look for specific words and then removing them.</p>

<pre><code>Set&lt;String&gt; Words = new LinkedHashSet&lt;String&gt;();
BufferedReader br = new BufferedReader(new FileReader("useless words.txt"));
for(String line;(line = br.readLine()) != null;)
   stopWords.add(line.trim().toString());

br.close();
</code></pre>
