Fix bug where spaces were added before metadata values.