remove trailing blanks