Add an attribute to return trimmed output. Maybe it should also be a more generic feature and any kind of 'post processing' should be allowed?