Doing anything with names like this is a dicey proposition. Since you don't specify, I assume the name is in LFM order and that no separator is present, e.g. DOE JAMES ADAM?? Lack of a separator(normally a comma) can be a killer given that there are multiple word last names (e.g. Oscar de la Renta). Applying title case works OK in many cases, but you have to deal with lot's of special stuff like L'Hereaux, Smith-Jones, macAdams, McMillan, etc.
In several cases where I've faced issues like this, I've developed general purpose algorithms and then allowed for special cases by, for instance, keeping a list of odd names and their capitalization