Remove empty lines in the tail