How to get a player name?

I want to set a command block to a custom command but i need the player name for it How can i store the playername into a storage variable?
Continue to help post