import unicodedata


def filter_non_printable(string_to_filter):
    """
    Filter string 's' by removing non-printable chars

    :param string_to_filter:
    :return:
    """
    output_string = ''.join(
        c for c in string_to_filter
        if not unicodedata.category(c) in set('Cf')
    )
    return output_string