minmax strings modified