Added indices to string formatting