Scala's string interpolation is pretty straight forward to use:
val user = "Bob"
val message = s"Hello, $user"
//Hello, Bob
For string blocks containing lots of financial data, these normally need double escaping, however (which for large blocks, such as test data, might get long):
val user = "Mary"
val message = s"Balance owing for $user is $100"
//error: invalid string interpolation $1, expected: $$, $identifier or ${expression}
//error: unclosed string literal
val message = s"Balance owing for $user is $$100"
//Balance owing for Mary is $100
Is it possible to use a different interpolation character to avoid the double escape?
val characterA = "Randolph"
val characterB = "Mortimer"
val family = "Duke"
val film = "Trading Places"
val outcome = "wagered"
val message = at"Your property was @{outcome} for $1 by brothers @{characterA} and @{characterB} @{family}"
//Your property was wagered for $1 by brothers Randolph and Mortimer Duke