adding message interpolation for min and max length
updated demo