def check_name_length(cell):
    """
    Verifies that the string has at least 1 non-whitespace character.

    Parameters
    ----------
    cell : QLineEdit
        a QLineEdit containing a string.
    """
    cell_value = cell.text()
    text = cell_value.strip()
    if len(text):
        cell.setStyleSheet('QLineEdit{background: white;}')
        return text, True
    else:
        cell.setStyleSheet('QLineEdit{background: red;}')
        return None, False
