remove trailing whitelines