replace 'hex?' with 'hex-string?', add tests for it, and update remaining code to use it