title: split a sentence so that adds each word in an array item
body: <p>I have a sentence, I want split the sentence so that adds each word in an array item.<br>
  I have done the following code but it still wrong.</p>
  
  <pre><code>string str = "Welcome to the computer world.";
  string strWords[5];
  short counter = 0;
  for(short i=0;i&lt;str.length();i++){
      strWords[counter] = str[i];
      if(str[i] == ' '){
          counter++;
      }
  }
  </code></pre>