Clean up error string