Added ability to set a min-length value