Bug 1104139 - [Contacts] Refactor highlight so we can avoid using regexp (WIP)

can we reduce these lines of code to two loops ... one loop that iterates over the components that have to be highlighted and another one to the components that must remain as they are ...