improve text annotations regular expression