@staticmethod
def __check_value(value):
    """ Checks that value is an instance of string. """
    if value is None or not isinstance(value, str):
        error_msg = 'The term value should be an instance of string'
        raise ValueError(error_msg)
    else:
        return value
