title: How to assign string values to enums and use that value in a switch
body: <p>Basically a series of titles will be passed into the switch statement and I need to compare them against the string values of the enum. But I have little to no idea how to do this correctly.</p>
  
  <p>Also, I don't know if this is even the best approach so if anyone has any ideas?</p>
  
  <p>For example:</p>
  
  <pre><code>enum
  {
      doctor = "doctor",
      mr = "mr",
      mrs = "mrs"
  }
  </code></pre>
  
  <p>and then switch through the string values I've assigned them.</p>