add regular expression in parseMessage() function