def cut_line(string, point, reverse=False):
    """get the front or behind fragment of the line
    Args:
        string: string to cut
        point: point to stop
        reverse:return the behind fragment

    Returns:
        string
    """
    counter = 0
    for x in string:
        if x == point:
            break
        else:
            counter += 1
    if not reverse:
        return string[:counter]
    elif reverse:
        return string[counter + 1:]