def simplify_str(filename):
    """Remove all the path from a filename ; returns only the actual name"""
    for i in range(len(filename) - 1, -1, -1):
        char = filename[i]
        if char == '/' or char == '\\':
            return filename[i + 1:].replace('.txt', '')
    return filename
