remove some trailing spaces