An easy way to format strings by using curly braces.
x = "Hello";
y = "World";
global.a = "Hello";
global.b = "World";
// Simple Formatting (best performance)
format("{}, {}", x, y);
// Positional Index Formatting
format("{1}, {0}", y, x);
// Variable Formatting
format("{x}, {y}");
// Global Variable Formatting
format("{$a}, {$b}");
// Escaped Curly Braces
format("Hello {|x}");
End User Licence Agreement (EULA).
Optimized code by removing unnecessary replacements
Improved escape character for formatting (curly) braces