remove tailing blanks