Prevent string index out of range error when initializing the validator
Merge pull request #395 from stuartwdouglas/validator-string-index

Prevent string index out of range error when initializing the validator