change str_cmp to use const char*