Replaced replace() with format()