Fixing Names

Fixing Names

Hi, 

I am trying to build out a custom upon lead creation, that if a leads first name and last name isnt in the proper format eg JOHN SMITH or jOHN sMith, that it auto corrects it to show as John Smith. 

I have tried the proper function but it doesnt appear to be working?

Any tips?