def clean_link(link_text):
 return link_text.strip(' DCTB \r\n \'"')

def clean_link ( link_text ) : return link_text . strip ( ' DCTB \r\n \'"' )
remove leading and trailing whitespace and punctuation .