title: how to parse string for capitalized words
body: <p>I have this string: <code>" Mimi loves Toto and Tata hate Mimi so Toto killed Tata"</code></p>
  
  <p>I want to write a code that print only the words that begin with capital letters, avoiding repetition</p>
  
  <p>the Output should be like</p>
  
  <pre><code>Mimi
  Toto
  Tata
  </code></pre>
  
  <p>I tried to do so but I'm sure its wrong even though no errors are showing.</p>
  
  <p>The code i wrote :</p>
  
  <pre><code>static void Main(string[] args)
          {
              string s = "Memi ate Toto and she killed Tata Memi also hate Biso";
              Console.WriteLine((spliter(s)));
          }
  
  
  
          public static string spliter(string s)
          {
  
              string x = s;
              Regex exp = new Regex(@"[A-Z]");
              MatchCollection M = exp.Matches(s);
  
              foreach (Match t in M)
              {
  
                  while (x != null)
                  {
                      x = t.Value;  
                  }
  
              }
              return x;
          }
  
  
      }
  }
  </code></pre>
  
  <h2>Idea:</h2>
  
  <p>What if i split the string into an array, then apply a regex to check them word by word and then print the results ? I don't know - can any one help me in making this code work?</p>