Cleanup file and standardize it