document.querySelectorAll('.capcase td').forEach(function(td) {
if (td.textContent) {
td.textContent = td.textContent
.toLowerCase()
.split(' ')
.map(word => {
if (word.toUpperCase() === "TBC" || word.toUpperCase() === "NA") {
return word;
} else {
return word.charAt(0).toUpperCase() + word.slice(1);
}
})
.join(' ');
}
});