added function to parse message from full url