':rtype: str'

def next(self):

    if (not self.hasNext()):
        return '    '
    if (self.__num == 0):
        self.__ch = self.__result[self.__index][0]
        self.__num = int(self.__result[self.__index][1])
        self.__index += 1
    self.__num -= 1
    return self.__ch
