if ( words[i].length() > 0 && words[i].trim().charAt( words[i].trim().length() - 1 ) == '.') tmp += words[i] + " <LEM_DESC_LINE_BREAK> " ; else tmp += words[i];
if ( words[i].trim().length() > 0 && words[i].trim().charAt( words[i].trim().length() - 1 ) == '.') tmp += words[i] + " <LEM_DESC_LINE_BREAK> " ; else tmp += words[i];
    public String trim(String text) {        String tmp = "" , trimmed = "" ;                 String[] words = text.split("\n");         for (int i = 0 ; i < words.length; i++) {            if ( words[i].length() > 0 && words[i].trim().charAt( words[i].trim().length() - 1 ) == '.')                tmp += words[i] + " <LEM_DESC_LINE_BREAK> " ;             else                 tmp += words[i];         }        StringTokenizer st = new StringTokenizer(tmp) ;        while (st.hasMoreElements()) {           String t = st.nextToken();           if (t.compareTo("<LEM_DESC_LINE_BREAK>") == 0)               trimmed += "\n\n" ;            else               trimmed += t.trim() + " ";        }                return trimmed ;                    }