code: def capfirst(value, failure_string='N/A'):
      
      try:
          value = value.lower()
          return value[0].upper() + value[1:]
      except:
          return failure_string
docs: Capitalizes the first character of the value.
      
      If the submitted value isn't a string, returns the `failure_string` keyword
      argument.
      
      Cribbs from django's default filter set