stupidly forgot to add the key for min/max in string problem. Works now