How can I keep leading and trailing spaces in a parsed string?

trim is confirmed as working as intended here too.

There is an issue I'd consider similar when it comes to writing multiple tags of the same name for a single track (post).