def split_strip(text, delimiters):
    """
    split the data into a 2D list and strip out whitespace,
    returns a 2D list of data and an integer representing the number of rows in this data
    """
    text = text.strip()
    data = delimiters.row_border.split(text)
    rows = len(data)
    for i in range(rows):
        data[i] = data[i].strip()
        data[i] = delimiters.cell_border.split(data[i])
    return data, rows