For loop to control multiple Fast leds without copy and paste

My code is as follows

Your code has italics in it?

Read the stickies at the top of the forum. Post you code, ALL of it, correctly.

Is it possible to replace the string "leds1"

leds1 is NOT a string. It is the name of a variable. At run time, variables do not have names. They have addresses.

You CAN have an array of objects, and iterate over the array. In order to show you how, you need to follow the rules (as stated above).