I think vincent got the solution for your problem. However, be careful when using these kind of functions on names. I did just this, a function to split a name and capitalize every first letter of a word (and converting the rest to lowercase). When His Royal Highness the Prince of Norway signed up for our conference, it turned into Hrh instead of HRH. (That is, the norwegian equiliant😉 The secretaries tried to fix this approx. once every 10 seconds, but ofcourse there was no way around the function. Pretty embarrasing I must say.