fix cstring comparison