Implemented message content substitution support.

As in issue #202.