I have a string called message.
message
message = \"Hello, welcome!\\nThis is some text that should be centered!\"
And I\'m trying to
You need to centre each line separately:
'\n'.join('{:^80}'.format(s) for s in message.split('\n'))