EAN8 class is used to calculate the barcode of type EAN8 barcode
Validate the given input to check whether the input is valid one or not
Returns string