Sorry just compare using

strcmp or else it will check for ptr address validation.