I think you may be using flexbox with flexwrap = wrap here. In that case, wrapping of short strings will look good, but long strings will cause strange cutoff points. Best way is to use a container around each text element and the text should immediately get its own line.
Hi Ashishkumar,
Have a look to this post, i hope it can help you:
https://forum.mendix.com/link/questions/98135
Kind regards,
Alex.