remove index from format strings