export $(echo $x)=hello
This will result in
Here is another approach. Assume x is already assigned the value 'string' and string is assigned the value 'hello'.
This is useful, say, in a for loop, where you don't know what the value of the assigned to the first variable will be. See this for a discussion about this and some other syntax.