Refactor picture-key-string checking to fast-failure