thread check - compare strings not exception instances