isHebrew function