sorted argument io and stripping spaces