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

Why do we need this function here? Could it be reused and receive the text as parameter?