rewrite strcmp, because it has bug in the previous strcmp