Translator: check for line boundaries when matching messages