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