Ooops, yes, you are quite right, I did not think of the cases where keys or values might have multiple spaces. This would usually not happen where I work (because we usually normalize keys and values), but, yes, there is a danger of messing things up. Thank you for for the comment.