simple key-value message parser and formater