Using Char Array with pinMode [SOLVED]

thanks MarkT

It works a treat....

Thanks everyone else for their input too