Remove trailing spaces from publication title.

#6076 

Added spaces to a publication title:
![selection_167](https://cloud.githubusercontent.com/assets/4497748/2955034/d3a756b2-da7a-11e3-98ef-ae8f7c0e2c79.png)

After saving the title is without the trailing spaces:
![selection_168](https://cloud.githubusercontent.com/assets/4497748/2955039/e725e884-da7a-11e3-9041-980a4fa66bb1.png)

When re-editing the node, the form title is also displayed with no trailing spaces:
![selection_169](https://cloud.githubusercontent.com/assets/4497748/2955043/fa2e52e0-da7a-11e3-9c37-923b70565045.png)