Trim some trailing whitespace