factored out function title_to_comment