add string check before assertion.