Removing trailing blank lines