title: Check if Last Character in a String is Not a Letter
body: <p>I have a string like so:</p>
  
  <pre><code>"A_Origin1_1"
  </code></pre>
  
  <p>I want to remove all numbers and symbols from the end of the string. To get:</p>
  
  <pre><code>"A_Origin"
  </code></pre>
  
  <p>I have the ability to strip the number, but not the <code>"_"</code>. How do I do this?</p>
  
  <p>This is the code I have so far:</p>
  
  <pre><code>def getNumericTail(str):
      return re.split('[^\d]', str)[-1]
  
  def endsWithNumber(str):
      return bool(getNumericTail(str))
  
  def removeNumericalPortion(str):
      return str[:-1];
  
  ## IN MAIN ##
  fixedName = "A_Origin1_1"
  while endsWithNumber(fixedName) == True:
      fixedName = removeNumericalPortion(fixedName);
  </code></pre>