Strip trailing space.
Fix injected value.
Clean up nicely upon $destruction.
Merge pull request #9 from resin-io/master

Fix injected value, remove trailing whitespace.