MaxLength condition added to input

Added a maxLength variable set to 600 to limit the array input.