fixed a bug on string comparing"