tr/ //d; push @template, $_ if ($_); # true when $_ is not an empty string