createMessage function

.. to build message from regex match