use direct comparison rather than regex for the hash check