Added string cmp to ignore encoding