fixed compare strings bug