private static String treat(final String line) {
        int cpt = 0;
        int cpt2 = line.length() - 1;
        char prov;

        //System.out.println(line);

        prov = line.charAt(cpt);

        while ((prov == ' ' || prov == '\t') && cpt != cpt2) {
            prov = line.charAt(++cpt);
        }

        //System.out.println("1 ok");

        prov = line.charAt(cpt);

        while ((prov == ' ' || prov == '\t') && cpt2 != 0) {
            prov = line.charAt(--cpt2);
        }

        if (cpt == 0 && cpt2 == (line.length() - 1)) {

             return line;

        } else {

             return line.substring(cpt, cpt2);

        }
    }