Let's say i have a text with some characters and numbers, just like this:

`Lorem ipsum 10.2357 dolor sit amet, 10.0000 consectetur adipiscing 50.9651 elit.`

How can i get a final String like this:

`Lorem ipsum 10.23 dolor sit amet, 10.00 consectetur adipiscing 50.96 elit.`

with a single statement, without creating additional methods?

**-> Update**
I want to do this in a single statement because i want to do it inside jasper reports, which does not support multi-statements. I could create a method for this but that would be too much work for just a simple thing