title: How can I ensure my c# string ends in a period?
body: <p>I have c# strings looking like this:</p>
  
  <pre><code>"abc";
  "def.";
  </code></pre>
  
  <p>When I read these into another variable I need some simple way to check the last character of the string and if it's not a period then append a period to that string. </p>
  
  <p>Does anyone have any ideas of a simple way I could do this?</p>