Added new format() method to replace deprecated formatFromFormat();