#crosscompute
s = 'CONNOR, JOHN'
def clean_name(s):
if ' ' in s:
s = s.replace(',', '')
l = s.split()
else:
l = s.split(',')
rl = l[::-1]
name = (' ').join(rl)
ti = name.title()
return ti
result = clean_name(s)
formatted = str(result)
print(formatted)
repr(formatted)
print('{0}'.format(formatted))
print('cleaned_name = {0}'.format(formatted))