How can I replace the doctype detail view title ID with the doctype name?

I want to hide the doctype or form detail view title ID and replace it with the original doctype or form name. For example, when I open a custom workflow, I want the title to display “workflow” instead of the workflow ID. How can I achieve this?