Storing and retrieving correctly the string from the shared preferences
Added the integer, enum and list enum fields