code: private static String addMmCifQuoting(String val) {
  		String newval;
  
  		if (val.contains("'")) {
  			// double quoting for strings containing single quotes (not strictly necessary but it's what the PDB usually does)
  			newval = "\""+val+"\"";
  		} else if (val.contains(" ")) {
  			// single quoting for stings containing spaces
  			newval = "'"+val+"'";
  		} else {
  			if (val.contains(" ") && val.contains("'")) {
  				// TODO deal with this case
  				logger.warn("Value contains both spaces and single quotes, won't format it: {}. CIF ouptut will likely be invalid.",val);
  			}
  			newval = val;
  		}
  		// TODO deal with all the other cases: e.g. multi-line quoting with ;;
  
  		return newval;
  	}
docs: Adds quoting to a String according to the STAR format (mmCIF) rules
  @param val
  @return