def string_chain(text, filters):
        """
        Chain several filters after each other, applies the filter on the entire string
        :param text: String to format
        :param filters: Sequence of filters to apply on String
        :return: The formatted String
        """
        if filters is None:
            return text

        for filter_function in filters:
            text = filter_function(text)

        return text
def string_chain ( text , filters ) : if filters is None : return text for filter_function in filters : text = filter_function ( text ) return text
Chain several filters after each other, applies the filter on the entire string
        :param text: String to format
        :param filters: Sequence of filters to apply on String
        :return: The formatted String