Cleanup of arg for file & stream.