def set_value(self, value):
        """Set value by item's string.

        :param value: The value.
        :type value: str, int