Set a String value in the preferences
The name of the preference to modify.
The new value for the preference.