code: def fmt_title(text):
      
      text = text.strip()
      if len(text) == 0:  # if empty string, return it
          return text
      else:
          text = text.lower()  # lower all char
          # delete redundant empty space
          chunks = [chunk for chunk in text.split(" ") if len(chunk) >= 1]
  
          new_chunks = list()
          for chunk in chunks:
              if chunk not in _function_words:
                  chunk = chunk[0].upper() + chunk[1:]
              new_chunks.append(chunk)
  
          new_chunks[0] = new_chunks[0][0].upper() + new_chunks[0][1:]
  
          return " ".join(new_chunks)
docs: Article title formatter.
  
      Except functional words, first letter uppercase. Example:
      "Google Killing Annoying Browsing Feature"
  
      **中文文档**
  
      文章标题的格式, 除了虚词, 每个英文单词的第一个字母大写。