JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<div id="testString"></div>

<!--
    expected output:

    THIS IS A TITLE
    This is a paragrath of random text.
    This is another paragrapth of random text
-->

JavaScript

$( document ).ready(function() {

  var myString = "THIS IS A TITLE This is a paragrapth of random text. This is another paragrapth of random text.";
	var myStringFormatted = myString.replace(/([A-Z]+)/g, ",$1").replace(/,/g,"<br />").split(",");

  console.log(myStringFormatted);
  
  $( "#testString" ).append(myStringFormatted);

});