Removes ending spaces/tabs, removes blank new lines

working condition