Respect spaces in workflow filter criteria

Status: Idea Submitted

Problem: Workflow filter function does not respect the spaces included in the values I enter (but the UX implies it will!)
Impact: I cannot filter as effectively as I’d like, and instead need to build lots of other filter criteria to manage for this imprecise matching. This is inefficient, and means my filtering is prone to inaccuracies as I cannot control for every variation I would like to exclude.
Idea: Make the filtering functionality respect the spaces I add in the specified values, or give us a wildcard symbol which represents a space.
Example from a current project:
My goal is to create a workflow which assigns a department property to a contact based on keyword matching their job title. This works really well for things like ‘communications’ or ‘procurement’ (e.g. ‘contains any of communications’ returns me communications manager, head of communications, etc.), but not very well for shorter terms which might appear in other strings.
Example case:
- I want IT-related job titles to be added to the IT department.
- I add ‘contains exactly IT’ > anyone with job title ‘IT’ (and nothing else) is added to list as expected. All good.
- But: how do I include job titles such as ‘IT EMEA’, ‘Acting Head of IT’, ‘VP IT’ without specifying all of these possibilities?
- I cannot add ‘IT’ with the ‘contains any of’ filter because then it would add anyone with the string ‘IT’ in their job title (e.g. ‘Head of recruITment’ or ‘FacilITy manager’) to the IT department incorrectly.
- So, I’d like to refine the filtering using spaces.
- The UX implies I can do this. Normally it prevents duplicates (so if I have added ‘Head of communications’ it will not let me add ‘Head of communications’ again, but it will let me add ‘Head of internal communications. Makes sense).
- Upon inputting values for this use case the filter criteria function does not regard ’ IT’ (space before), 'IT ’ (space afterward), and ’ IT ’ (spaces either side) as duplicates, implying that it respects the spaces in its filtering. This would be ideal.
- However, filtering for ’ IT ’ with spaces either side still sorts ‘recruITment’ job titles into the IT department despite there not being spaces either side of the ‘IT’ substring within that word. This means that contrary to what the UX implied, it has ignored the spaces.
- As a result, I will have to build potentially hundreds of ‘does not contain any of’ criteria to ensure job titles like recruitment, commodity, security, equality, quality, remit etc. do not match the IT filter.
A similar thing happens for ’ CTO ’ (with spaces either side) matching ‘Director’ job titles [direCTOr], or ’ HR ’ (spaces either side) returning job titles that contain Maghreb [magHReb].
This basically just nerfs a would-be unbelievably powerful feature as I have to spend a lot of time building workarounds for it.

This needs to be fixed ASAP. I have run into the exact same problem, and it makes Hubspot unusable for persona segmentation.