Can I optimize this further?

I do not know how to switch to C-String. I got confused with pointer and char array :frowning: