Fix trailing space issue with merge requests and issues. Fixes #2514
Fixes #2514 (closed) Strip whitespace from merge request and issue titles. Whitespace doesn't inherently cause problems for the title itself. However, in the event display we bold the title to show when it changes from x to y. This caused markdown to not display the event properly. See #2514 (closed) for an example of previous behavior.