but should not have beenStringTokenizer tok = new StringTokenizer(question, "\n");while(tok.hasMoreTokens())buf.append((String) tok.nextToken()+"<BR>");Instead ofbuf.append(tok.nextToken().append)"<BR>");