Why is my texture has lines at the beginning and the end?

I tried:

texture.wrapU = BABYLON.Constants.TEXTURE_CLAMP_ADDRESSMODE;
texture.wrapV = BABYLON.Constants.TEXTURE_CLAMP_ADDRESSMODE;

But it is still the same.

My code is quite long, it is kind of hard to reproduce in PG. @RaananW but my code looks something like this:

    var tex = new BABYLON.DynamicTexture(generateUUID(), { width: DTWidth, height: DTHeight }, $scope.scene);
    tex.hasAlpha = true;
    tex.wrapU = BABYLON.Constants.TEXTURE_CLAMP_ADDRESSMODE;
    tex.wrapV = BABYLON.Constants.TEXTURE_CLAMP_ADDRESSMODE;
    var ctx = tex.getContext();
    ctx.setTransform(1, 0, 0, -1, 0, DTHeight);
    .....
    .....
    tex.drawText(text, left, top, drawFont, style.fontColor, "transparent", true, true);
    ctx.setTransform(1, 0, 0, -1, 0, DTHeight);

Note that there is ctx.setTransform() twice, one before drawing text, and one after drawing text. This is because without ctx.setTransform() the texts are upside down. These ctx.setTransform() fixes it.

Could it be this is the cause of the problem? Only certain characters with certain number of characters triggers it.