Fixed a bug where a template starting with an empty string would return the empty string regardless of whether the rest of the character vector contained valid text