removing blank trailing line