Posted on 2011-03-14
I'm creating user names based on the following:
So the user names are usually BAMoses or KMGivler or DARexroth which works well.
What I'm running into is last names that are hyphenated like Brabham-Lawrence which then creates the user name IABrabham-Lawrence or the last name will have an apostrophe in it like O'Donnell which then returns the user name of PDO'Donnell.
I need assistance accounting for this by either truncating the name before the hyphen (which I prefer) and removing the apostrophe.
Thanks for any guidance!