def split_sbtabs(sbtab_strings):
    """
    Cuts one SBtab string in single SBtab strings if necessary.

    Parameters
    ----------
    sbtab_strings: str
        SBtab table or tables in string representation.

    Returns: list
        List of SBtab tables in string representation.
    """
    sbtabs = []
    sbtab_string = ''
    counter = 1
    for row in sbtab_strings.split('\n'):
        if row.startswith('!!!') or row.startswith('"!!!'):
            continue
        if row.startswith('!!'):
            if sbtab_string == '':
                sbtab_string = row + '\n'
                continue
            else:
                try:
                    if sbtab_string.startswith('!!SBtab'):
                        sbtabs.append(sbtab_string)
                        counter += 1
                    sbtab_string = row + '\n'
                except:
                    print('Warning: Could not write SBtab %s' % counter)
                    counter += 1
        else:
            sbtab_string += row + '\n'
    if sbtab_string.startswith('!!SBtab'):
        sbtabs.append(sbtab_string)
    return sbtabs
