If you want everything in lowercase this method is just wasting cpu.
Simply go through each character, check if its between 'A' and 'Z' and if yes add 32 or the delta of 'a' - 'A' (which is 32) to get lowercase.
If you want to keep the exact same case as in the names I doubt theres a good way for this