title: RegEx : Insert space in the string after a matched pattern
body: <p>In Java I want to insert a space after a string but only if the string contains "MAVERICK". I think using replaceAll() method which uses regular expressions as a parameter will do it, but i am not really getting it.</p>
  
  <p>Here is what i have</p>
  
  <pre><code>String s = "MAVERICKA";
  //the last character can be from the following set [A,Z,T,SE,EX]
  </code></pre>
  
  <p>So, i want the function to return me the string "MAVERICK A" or "MAVERICK EX".
  Ex.</p>
  
  <ul>
  <li>MAVERICKA -> MAVERICK A</li>
  <li>MAVERICKEX -> MAVERICK EX</li>
  </ul>
  
  <p>Also, if the string is already in the correct format it should not insert a space. i.e</p>
  
  <ul>
  <li>MAVERICK A -> MAVERICK A </li>
  </ul>