Implemented label matching of concatenated strings.

Also fixed the parsing of the optional label argument in the "edge"
condition.