if ("".equals(str)) { return 1; }
    protected static int getLinesCount(String str) {        int count = 0;        for(StringTokenizer lines = new StringTokenizer(str, "\n"); lines.hasMoreTokens();) {            lines.nextToken();            count++;        }        return count;    }