@staticmethod
def __str2int(string):
    """Conversion from string to integer, 0 in case of empty string.

        :param string: Input string.
        :type string: str
        :returns: Integer converted from string, 0 in case of ValueError.
        :rtype: int
        """
    try:
        return int(string)
    except ValueError:
        return 0
