title: Upper character next to a separator
body: <p>I'm looking for a shortest/quick way to upper a character next to a separator and lower all other.</p>
  
  <p>Separator can be: <code>.</code>, <code>-</code>,  <code></code></p>
  
  <p>Example 1:</p>
  
  <pre><code>In: test.test-test test
  
  Out: Test.Test-Test Test
  </code></pre>
  
  <p>Example 2:</p>
  
  <pre><code>In: TEST.TEST
  
  Out: Test.Test
  </code></pre>
  
  <p>I have a long method doing it for now, but think it can be in one line with a good use of <code>replace();</code>  </p>