remove some trailing whitespace