trim whitespace around preview text