Yes, the function return the name as we pass it in both key normalname and name. It should be really useful to return the real name (with upper/lowercase) in the normalname key. For myself, it will prevent for me to use a dataserver event with the key returned to get the good view of the avatar name.
I’m still using this function I just noticed that if you require the name “heyter” for example, it will return you “heyter resident” even if the parameter request_case is set to 1.