Now uses a regex to extract the message part of the string