Trim title before posting

Trim title before posting; if the title has a space at the end, it is not posted as a link: http://chat.stackexchange.com/transcript/message/17536680#17536680