So, I'm dealing with users who do not seem to care enough to enter their fields with proper spacing and in the right case.
John Harry Smith is entered as
John harry smith or maybe even
JOHN HARRY SMITH and
Techno India, Salt Lake is entered as
techno india,salt lake.
As I use this data to generate a printable registration card, it would look awful if I just left the strings as is. However, it is impossible to assume absolute title case because words in the string could indeed begin legally with a lowercase letter in some cases.
What would be a good way to deal with such strings?