splits a string on whitespaces and removes duplicate values
function splitUnique (string) {
  string = string && string.trim();
  if (string) {
    return unique(string.split(/\s+/));
  } else {
    return undefined;
  }
}