JSFiddle - React, Tailwind, and code Playground

HTML

<p id="sentence">here is a normal, everyday sentence</p>

JavaScript

var s = document.getElementById('sentence');

s.innerHTML = s.innerHTML.split(' ').map(function(t) {
  return 'bacon' + t.substring(1);
}).join(' ');