Remove white space from discountCode in validation