Clean up command output