removed space charecter from the end of any directives added via an <% if