remove trailing blank spaces