JSFiddle - React, Tailwind, and code Playground

HTML

<ul>
  <li>MyHouse</li>
  <li>MyStreet</li>
</ul>

CSS

span {
    font-weight:bold;
}

JavaScript

$('li').each(function(){
    $(this).html('<span>'+$(this).text().substring(0,2)+'</span>'+$(this).text().substring(2));
});