Fix activation of 'add term' button after removing a term
Use curly braces in order to handle multi-word matches