fix uninitialized value in string comparision