Changes input into a message object