Update template.php

Small bug with the fieldset template processor, Some field decided to put a white space at the end of the title.