this was odd - it was setting the min length incorrectly because of not
catching anything in a split match.
simple demo program reproducing the string problem in #17.