fixed a bug in strings comparison