code: def title_case(string):
      
      if not string:
          return string
      string = string.replace('_', ' ').replace('-', ' ')
      parts = de_camel(string, ' ', _lowercase=False).strip().split(' ')
      return ' '.join([part if part.isupper() else part.title()
                       for part in parts])
docs: Converts a string to title case. For example::
  
          title_case('one_two_three') -> 'One Two Three'