allow setting min/max using strings (#439)