Strip trails whitespace