public String getRate(String r){
        if (r == null)return null;
        int pos = r.lastIndexOf("=");
        r = r.substring(pos + 1);
        
        pos = r.lastIndexOf(".");
        r = r.substring(0, pos + 6);
        if (r.contains(",")){
            pos = r.lastIndexOf(",");
        r = (r.substring(0, pos) + r.substring(pos+1));
        //System.out.println(r);
        }
        return r;
    }