There are already a number of ways to get to solve this problem. We can use standard libraries. I have got a solution if you still want help in using non-transformer solutions you may get in touch with me.
I am new I do not know if we can take names of other libraries in this forum.
The transformer library is better used for other stuff but if we get a solution to this issue inside the transformer itself then we do not need other libraries, which is obviously of advantageous.
Hope this helps.