Collapse matching and adjascent labels in notes.