title: Add line breaks around multiple uppercase words in a string
body: <p><em>Edited because i wasn't clear enough</em></p>
  <p>I have some text from a .txt file, that i want to display on a HTML page. I want to have a linebreak before- and after an uppercase line, but not for standalone words. Like if more than 2 words are uppercase, they should be on a seperate line, but not if its only one word.</p>
  <pre><code>const text1 = &quot;I want THIS ON A SEPERATE LINE but not THIS text here&quot;;
  
  function convertText(text) {
  ...check for uppercase line....
   document.write(modifiedText)
  }
  convertText(text1);
  
  
  /*
  Wanted result: 
  
  I want 
  THIS ON A SEPERATE LINE
  but not THIS text here
  */
  
  </code></pre>
  <p>How can I do this?</p>