Is there is any API which replace template string along with values using Spring or java.
Dear %FIRST_NAME% %LAST_NAME%,
---- remaining text-----------
My favorite templating engine is Apache Velocity
Integrates nicely with Spring as well, theres an introductory article here