Set the value of a string config variable in the config file with the highest level (usually the local one).
A copy of the string is made and the user is free to use it afterwards.
where to look for the variable
the variable's name
the string to store.
0 or an error code