Rewrite hash checking without StringList