Is there any way to add a "wildcard" text to an execute command?

Solution 1:

There is no way to get a player's name into an item name or similar.

Something like this was suggested many times, one of the more popular suggestion was a "/compose" command, but it was rejected by a developer due to security issues, for example if something had a closing bracket or quotation mark in their name, it could mess up the rest of the command. Of course this could be solved relatively easily with automatic escaping, but I haven't followed the development of the suggestion any further, so I don't know if anyway has e.g. contributed code like that yet. It's certainly possible to implement that or something similar into Minecraft, but it hasn't been done yet.