handling dashes in autocomplete