Value to variable name

AWOL:
  Serial.print(sp_check[1]); 1 is the index of the second element.
Zero is the index of the first element

The outcome of that is:

...
SETUP: List item 'sp_sw4' is declared on pin 'p'.
SETUP: List item 'sp_sw3' is declared on pin 'p'.
SETUP: List item 'sp_ir8' does not need to do anything during setup.
...

And I would like to have:

...
SETUP: List item 'sp_sw4' is declared on pin '22'.
SETUP: List item 'sp_sw3' is declared on pin '23'.
SETUP: List item 'sp_ir8' does not need to do anything during setup.
...