Compare a string (not bytes) for PY3 support