Collapse matching and adjascent labels in names.