def __str__(self):
s = self._name<EOL>if len(self._arguments) > <NUM_LIT:0>:<EOL><INDENT>s += '<STR_LIT>'.format(<EOL>'<STR_LIT:U+002CU+0020>'.join(text_type(a) for a in self._arguments))<EOL><DEDENT>if self._compartment is not None:<EOL><INDENT>s += '<STR_LIT>'.format(self._compartment)<EOL><DEDENT>return s<EOL>
String representation of compound

        >>> str(Compound('Phosphate'))
        'Phosphate'
        >>> str(Compound('Phosphate', 'e'))
        'Phosphate[e]'
        >>> str(Compound('Polyphosphate', None, [Expression('n')]))
        'Polyphosphate(n)'
        >>> str(Compound('Polyphosphate', 'p', [Expression('n')]))
        'Polyphosphate(n)[p]'