fixed comparison of string with integer