While traning documents for ML model; Special characters are being place at the end of string

This is happening before the deployment. OCR comes in the picture later. First I am training my model and during the training I am facing this.