title: Remove substring if exists
body: <p>I have 3 possible input cases</p>
  
  <pre><code>string input = "";        // expected result: ""
  string input = "bar-foo"; // expected result: "foo"
  string input = "foo";     // expected result: "foo"
  </code></pre>
  
  <p>And I have to remove everyting including the first separator char <code>-</code> <em>if exists</em>. </p>
  
  <p>Working approach:</p>
  
  <pre><code>string output = input.Split('-').LastOrDefault();
  </code></pre>
  
  <p>I want to solve this without <code>Split()</code> - my NOT working approach:</p>
  
  <pre><code>string output = input.Substring(input.IndexOf('-') );
  </code></pre>
  
  <p>How can I handle the <code>IndexOutOfRangeException</code> / make this code work?</p>