print "</th></tr>\n";
foreach my $ts ($te->table_states) {
foreach my $row ($ts->rows) {
map { s/\xa0//g; s/\n/<br \/>/g; $_} @$row;
$row->[1] = capitalize($row->[1]);
print "</th></tr>\n";
foreach my $ts ($te->table_states) {
foreach my $row ($ts->rows) {
map { s/\xa0//g; s/\n/<br \/>/g; $_} @$row;
$row->[1] = capitalize($row->[1]);