withTrim

A copy trimmed to trim, or untrimmed when null.