Fixing the string value for the local storage.