Missing check for `maxlen >= 3`.