Set max input data length