Change all the sharepreference keys to variables.
This should prevent errors due to typos in keys.