title: Check if character in string has space behind
body: <p>I am trying to write a function that breaks up camel casing by using a space between words. How do I check if char already has space behind?</p>
  <pre><code>def solution(s):
      space = ' '
      for chr in s:
          if chr.isupper() == True:
              new_str = s.replace(chr, space + chr)
      return new_str
  </code></pre>
  <p>Input:</p>
  <pre><code>&quot;camelCaseWord&quot;      # a word in camelCasing
  </code></pre>
  <p>Output:</p>
  <pre><code>&quot;camel Case Word&quot;    # separated by spaces where word starts with capital leter
  </code></pre>
  <p>My solution only gives me <code>&quot;camelCase Word&quot;</code></p>