@staticmethod
def _format_equality(value, comparator) ->str:
    """
        Formatting value in the event of equality operation
        :param value: str
        :return: str
        """
    if isinstance(value, str):
        if comparator == '==':
            comparator = '=~'
        elif comparator == '!=':
            comparator = '!~'
    return '"{}"'.format(value), comparator
