Trim unneeded blank lines