Fixed an issue for "labels" feature from the config file

Fixed an issue which was causing multiple matches for labels fully
    contained in other labels (i.e. "high" and "highest")