def ucfirst(text):
  """
  Template filter for capitalizing the first letter of a word

  Args:
    text: the text to be modified

  Returns:
    A string with the first letter uppercase.
  """
  return text[0].upper() + text[1:]