public String splitIndex(String s){
        String x[]=s.split(",");
        String title="";
        for(int i=0;i<x.length;i++){        //finding index of name and address
            if(x[i].contains("name")){
                name_index=i;

            }
            if(x[i].contains("address")){
                address_index=i;
            }
        }
        int j;
        for(j=0;j<name_index;j++){
            title+=x[j]+",";
        }
        title+="\"first name\",\"last name\",";
        for(j=name_index+1;j<address_index;j++){
            title+=x[j]+",";
        }
        title+="\"address line 1\",\"address line 2\",\"city\",\"pincode\"";
          if(j==x.length-1) {
            title+=";";
        }
        else {
            title+=",";
        }
          if(x.length-1!=address_index){
         for(j=address_index+1;j<x.length-1;j++){
              title+=x[j]+",";
              //System.out.println("dd");
         }
          if(j==x.length-1) {
            title+=x[j];
        }
          }
        return title;
    }