public List<Integer> StringToList(String range) {     
        List<Integer> idx = new ArrayList<Integer>();
        String s0 = range.replace(" ","");
        String s1 = s0.replace("{","");
        String s2 = s1.replace("}","");
        String[] s3 = s2.split(",");
        for (String s : s3) {
         int mi = Integer.parseInt(s);
         idx.add(mi);
        }
        return idx;
    }