It does check to make sure that there are no exact duplicates. It's checked at the time the user requests the display name change. It also checks again before it's actually changed by the admin (just in case a new user registered with that name or something before the approval).

It just doesn't disallow any characters (although I just altered it so it will strip off spaces at the beginning or end).