Trim off white space when element's text value is used as translationId

Using the `translate` directive on an element containing white space resulted in 'Translation for btn.save doesn't exist':

```html
<button translate>
  btn.save
</button>
```

So I changed the behaviour of the directive to trim off white space.