def find_longest(self, string):
    for l in self.known_values:
        if is_initial_string(l, string):
            return self.known_values[l]
    return False
def find_longest(self, string):
    for l in self.known_values:
        if is_initial_string(l, string):
            return self.known_values[l]
    return False