Handle caps with multiple key-value pairs