def METHOD_NAME(self):
    """
    Return the string that should be written to the input file.
    Some values needs single quotes while others do not.
    """
    if self.needsQuotes() and (self.value or self.user_added):
        return "'%s'" % self.value
    else:
        return str(self.value)