function qualify(string) {
    return String(string).replace(/([ -])(?!$)/g, '$1?');
  }
Prepares a string for use in a `RegExp` by making hyphens and spaces optional.

@private
@param {string} string The string to qualify.
@returns {string} The qualified string.