title: Python: Remove First Character of each Word in String
body: <p>I am trying to figure out how to remove the first character of a words in a string.</p>
  
  <p>My program reads in a string.</p>
  
  <p>Suppose the input is : </p>
  
  <blockquote>
    <p>this is demo</p>
  </blockquote>
  
  <p>My intention is to remove the first character of each word of the string, that is
  <code>tid</code>, leaving <code>his s emo</code>.</p>
  
  <p>I have tried </p>
  
  <ol>
  <li>Using a <code>for loop</code> and traversing the string</li>
  <li>Checking for <strong>space</strong> in the string using <code>isspace() function.</code></li>
  <li>Storing the index of the letter which is encountered after the
  space, <code>i = char + 1,</code>   where char is the index of space.</li>
  <li>Then, trying to remove the empty space using <code>str_replaced = str[i:].</code></li>
  </ol>
  
  <p>But it removed the entire string except the last one.</p>