remove trailing blank line