Look at the String class's format() method. It will do String substitutions