def strip_str_arr(str_arr):
    """
    strips a str_arr, remove \n and spaces
    """
    res = []
    for string in str_arr:
        temp = string.rstrip().strip()
        if not temp:
            continue
        res.append(temp)
    return res