modified savestring