Fixing string comparison