Better management of the the input in the MsgParser