Removed Empty Lines and Add Line in End of File