remove trailing blanks that cause spacing