Preference string cleanup