removes some trailing blanks