Usage of str.format() function