add trimSpaces option

#### trimSpaces
Type: `Boolean`
Default: `false`

Remove leading and trailing spaces on templates.