def remove_borders(image: list[list[str]], size: int) -> list[list[str]]:
    """
    Remove borders of the given image

    :param image: 2d list of strings
    :param size: individual tile width
    :return: 2d list of strings
    """

    cropped_list = list()
    is_border = lambda i: (i % size) in [0, 9]
    for i, row in enumerate(image):
        if is_border(i):
            continue
        cropped_row = list()
        for j, cell in enumerate(row):
            if is_border(j):
                continue
            cropped_row.append(cell)
        cropped_list.append(cropped_row)

    return cropped_list