def clean_row(row):
    """Helper method that cleans whitespaces and newlines in text returned from BeautifulSoup
    Parameters
    ----------
    row
        text returned from BeautifulSoup find method
    Returns
    -------
        list of elements

    """
    return [r for r in row.text.strip().split("\n") if r not in ["", " "]]