def getString(self, char):
    buff = []
    while (not self.end):
        if (self.current == char):
            if (not ((((self.index + 1) < self.length) and (self.next == char)) or (self.previous == char))):
                break
        buff.append(self.current)
        self.index += 1
    self.index += 1
    return ''.join(buff)
def getString(self, char):
    buff = []
    while (not self.end):
        if (self.current == char):
            if (not ((((self.index + 1) < self.length) and (self.next == char)) or (self.previous == char))):
                break
        buff.append(self.current)
        self.index += 1
    self.index += 1
    return .join(buff)