How to use strings in storage

I want to set storage to a string and use that string as the mob that gets summoned from a function: $summon $(mob) ~ ~ ~ But, I don't know how to put a string into storage to begin with.

Continue to help post