Strip some trailing whitespace