For my use case I'm storing YAML data in the database, so trimming it will invalidate the YAML data. See PR #190