Fix error message/code for min/max string length

Min/max string length errors would return an error where the
message was in the code and code was missing.
Merge pull request #27 from paulwib/master

Issue #26 Min/max string length error message/code mixed up