string comparison fix