Removes extra spaces in end of line