Strip trailing/leading spaces from room name

To avoid http://meta.stackexchange.com/questions/244517/link-in-chat-with-trailing-space-shows-markdown-instead-of-link-text