khameleonium,
<!DOCTYPE html>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
</head>
<body>
<table class="table_s">
<tbody>
<tr>
<td><input type="checkbox"></td>
<td>950</td>
</tr>
<tr>
<td><input type="checkbox"></td>
<td>100 Йо-хо-хо!</td>
</tr>
<tr>
<td><input type="checkbox"></td>
<td>299 и бутылка рома!</td>
</tr>
</tbody>
</table>
<script>
const words = "100,299,Йо-хо,992",
table = document.querySelector(".table_s")
function checkedWords(words, table) {
words = words.split(",");
const inputs = table.querySelectorAll("[type='checkbox']");
inputs.forEach(el => {
let next = el.parentNode.nextElementSibling;
if (next) {
let text = next.textContent;
el.checked = words.some(word => text.includes(word))
}
})
}
checkedWords(words, table)
</script>
</body>
</html>