trim the whitespace of the share message