remove trailiing space in template causing test to fail