fix the bug in string_compare
Merge pull request #189 from andyqzb/master

fix the bug in string_compare