N-acetylhexosaminidase activity