Added trim() to all template strings

Whitespace before template strings was causing a jQuery notification.
Added trim to ensure first character of a template string is always “<“