def filter_str(check_str):
        
    """
    过滤无用字符

    :param str check_str:待过滤的字符串

    :return str temp:过滤后的字符串
    """

    temp = ''
    for i in check_str:
        if i != '\n' and i != '\x00':
            temp = temp + i
    return temp