Why is the if statement failed? C++

thank you sir very very much, for solving this problem.
I just tried to printed the DisplayName in my macro printf("%s", *DisplayName); and it works fine here too.
thank you very much for the solution to print only names :slight_smile: