Character names can be any string, but automatic conversion of letters to Greek letters for printing does not work for all input. I think it is not trying to break a line in spaces.
If you are using a Jupyter laptop, you can simply set the character name as LaTeX of what you want
ab = Symbol(r'\alpha\cdot\beta')
(don't forget the line prefix with r , so Python will not use backslash)
If you use text output, you can set it to a Unicode string. This should also work on a Jupyter laptop, although it will look slightly different since it will display the actual Unicode characters instead of LaTeX.
ab = Symbol(u'α⋅β')
source share