if (digits[i] !== padding) {
                        const reason = `incorrect padding end in ${digits.join('')}`;
                        const position = {start: start + i, end: start + i + 1};
                        throw new Base32EncodeError(reason, string, position);
                    }