def to_lines(text):
    """Convert any text to a list of strings less all surrounding whitespace and
    only if it contains some chars

    :param text: type str loose text
    """
    final = []
    lines = text.split("\n")
    for line in lines:
        ll = line.strip()
        if len(ll) > 0:
            final.append(ll)
    return final