title: extract the first three word in a string out
body: <p>I have the following codes:</p>
  
  <pre><code>        void dbSvc_retrievepopularhawkerCompleted(object sender, RouteServiceRef.retrievepopularhawkerCompletedEventArgs e)
      {
          List&lt;RouteServiceRef.Hawker&gt; recommendPlaceList;
          recommendPlaceList = e.Result.Cast&lt;RouteServiceRef.Hawker&gt;().ToList();
  
          string hawkername = "";
          string address = "";
          string postal = "";
          double coordX = 0.0;
          double coordY = 0.0;
          double popularity = 0;
  
  
  
          foreach (RouteServiceRef.Hawker rp in recommendPlaceList)
          {
              hawkername = rp.hawkername;
              address = rp.address;
              postal = rp.postal;
              coordX = rp.xcoord;
              coordY = rp.ycoord;
              popularity = rp.popularity;
  
              cities.Add(new City() { Name = hawkername, Population = popularity });
  
  
  
          }
  
  
          ColumnSeries bs = ChartControl.Series[0] as ColumnSeries; bs.ItemsSource = cities;
  
  
  
      }
  </code></pre>
  
  <p>How can I extract the first three word in the string of the hawkername ? The result for hawkername is:</p>
  
  <p><img src="https://i.stack.imgur.com/tbXHr.png" alt="enter image description here"></p>
  
  <p><strong>I need to get the first three string out.</strong></p>