replace message type from string to message type with timestamp: Message