def get_title(*, content: str, default: str) -> str:
    """Getting title of the file from the content of the file.

    Args:
        content: File string content.
        default: Fallback in case the title doesn't exists inside the file.

    Returns:
        A title from title or the default value.
    """
    try:
        title = content.split("title:")[1].split("\n")[0].strip()
    except IndexError:
        title = f"{default}".capitalize()
    return title