Optimized strcmp routine for HS