title: How to check if a word starts with a given character?
body: <p>I have a list of a Sharepoint items: each item has a title, a description and a type.
  I successfully retrieved it, I called it <code>result</code>. I want to first check if there is any item in <code>result</code> which starts with A then B then C, etc. I will have to do the same for each alphabet character and then if I find a word starting with this character I will have to display the character in bold.</p>
  
  <p>I initially display the characters using this function:</p>
  
  <pre><code>private string generateHeaderScripts(char currentChar)
  {
      string headerScriptHtml = "$(document).ready(function() {" +
          "$(\"#myTable" + currentChar.ToString() + "\") " +
          ".tablesorter({widthFixed: true, widgets: ['zebra']})" +
          ".tablesorterPager({container: $(\"#pager" + currentChar.ToString() +"\")}); " +
          "});";
      return headerScriptHtml;
  }
  </code></pre>
  
  <p>How can I check if a word starts with a given character?</p>