String sbString = sb.toString();
BufferedReader in = new BufferedReader(new StringReader(sbString));
sb = new StringBuilder();
try
{
readloop:
for(String s = in.readLine(); s != null; s = in.readLine()){
for(String filter : filterOut){
if(s.startsWith(filter))
continue readloop; // continue to outer loop
}
append(s);
}
}
catch(Exception e)
{
// bail
return sbString;
}
return toString();