Custom splitRawMessage method to construct message from raw input