check for duplicate gift and removed white spaces