Unnecessary whitespaces are trimmed from string members of metadata.