Trim translation IDs

One liner to the main translate function should do the trick.

Apparently 'translationId.trim();' is [slower](http://jsperf.com/string-trim-vs-chunge/5) than using 'translationId.replace(/^\s+|\s+$/g,'');'? 

Not that speed is an issue still quite curious.