add string check before assertion.
Merge pull request #15 from hansode/fix-string-assertion

add string check before assertion.