Update Template.php

fixing bug with ooxmltags inside pattern