fix message failing to post cause of newline

just a simple msg = msg.rstrip() is added to remove newlines (and spaces) from the end of message