In Scala we can use the format method on a string and use format specifiers like example
format
"The %s costs %s".format(name, price.toString)