Clean up shell output