remove overlapping matches when there are substring matches
refs: https://aqqin-jira.atlassian.net/browse/AQN-5388