code: def _string_to_int(self, string):
          
          number = 0
          for char in string[::-1]:
              number = number * self._alpha_len + self._alphabet.index(char)
          return number
docs: Convert a string to a number, using the given alphabet..