I am about to lose my mind over this tiny little code

I have a character with a space in his name and I’ve never had any issues with that.