Fix transform=translate removal.

This replacement could produce the ```" "``` string, producing an invalid entry for the transform attribute, instead of removing it.

I've only added a ```trim()``` call to avoid this issue.