Only trim spaces if there is one in the input.
Only trim spaces if there is one in the input.

[Fixes #121540223](https://www.pivotaltracker.com/story/show/121540223)

ello/webapp,ello/webapp,ello/webapp