def text(self, value):
        """Set Text content for Comment (validation of input)"""
        if value in (None, '') or value.strip() == "":
            raise AttributeError("Empty text value is invalid.")
        self._text = value
Set Text content for Comment (validation of input)