def collapse_initials(name):
if len(name.split("<STR_LIT:.>")) > <NUM_LIT:1>:<EOL><INDENT>name = re.sub(r'<STR_LIT>', r'<STR_LIT>', name)<EOL><DEDENT>return name<EOL>
Remove the space between initials, eg T. A. --> T.A.