collapse key must be a string