removing blank spaces at end of function files