Modify the format of message string