Issue #14 Added maxLength setting