private String cleanString(String value) {
    if (value == null) {
      return null;
    }
    if (value.isEmpty()) {
      return value;
    }
    char[] tmp = value.toCharArray();
    if(tmp.length == 1 && ( tmp[0] == '"' || tmp[0] == '\'')){
      value ="";//empty string 
    } else if ((tmp[0] == '"' && tmp[value.length() - 1] == '"')
        || (tmp[0] == '\'' && tmp[value.length() - 1] == '\'')) {
      value = value.substring(1, value.length() - 1);
    }
    return value;
  }