title: Cut a text on a string when '.' is found in the text
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2660723/remove-characters-after-specific-character-in-string-then-remove-substring">Remove characters after specific character in string, then remove substring?</a>  </p>
  </blockquote>
  
  
  
  <p>I have a string variabel that contains a text like this:</p>
  
  <pre><code>"Hello My name is B and I love soccer. I live in California."
  </code></pre>
  
  <p>I want to cut the text after the first '.' so the text displays</p>
  
  <pre><code>"Hello My name is B and I love soccer."
  </code></pre>
  
  <p>How can I do it in the simpliest way?</p>
  
  <p>I tried:</p>
  
  <pre><code>Char Mychar = '.';
  
  Stringvariabel.trimstart(Mychar);
  </code></pre>
  
  <p>But I guess it's wrong.</p>