You will note from the documentation that only %s and %d are supported for strings and numbers. What is not provided is any sort of formatting of those strings or numbers. For example in Java we can do this:
// Format the number 10 left justified in a string of 4 digits
String result =String.format("Number: %4d", 10);
// ie "Number: 10"
However, Oracle’s string functions can make up for what is lacking in the format_message function: