trim message field values. fixes #186