Java regex remove tabs and replace it with 1 whitespace.
<pre><code>for(String s1 :splitedString){


listOfWords.add(s1.replace("\r", "").replace("\n", "").replace("\t"," ").replace("\\s+", " ").trim());
            }
</code></pre>

<p>So this replaces all the tabs with, 
So words like 
ABCD  AAAAA
become 
ABCDAAAAA
and I want 
ABCD AAAAA</p>