trim after EOF