Non Latching push button via bluetooth

I am wanting to control an 8 channel relay board with a bluetooth controller. I found a code that works with the 8 channel relay board that I have and I am able to control it from Arduino Manager on an IOS device. My only problem is that I would like to make relay #2(ledPin2) come on with a button press and shut off when released. I tried an else statement after the digitalWrite(11,0); it made the relay light flicker when I held it down but didn't actually pull in the relay. I have tried to find an answer without asking but this is my 3rd day with an Arduino. Thank you very much for any help.

char command;
String string;
const int ledPin1 =  12;
const int ledPin2 =  11;
const int ledPin3 =  10;
const int ledPin4 =  9;
const int ledPin5 =  8;
const int ledPin6 =  7;
const int ledPin7 =  6;
const int ledPin8 =  5;

void setup() {
  Serial.begin(9600);
  pinMode(ledPin1, OUTPUT);
  pinMode(ledPin2, OUTPUT);
  pinMode(ledPin3, OUTPUT);
  pinMode(ledPin4, OUTPUT);
  pinMode(ledPin5, OUTPUT);
  pinMode(ledPin6, OUTPUT);
  pinMode(ledPin7, OUTPUT);
  pinMode(ledPin8, OUTPUT);
  digitalWrite(5, 1);
  digitalWrite(6, 1);
  digitalWrite(7, 1);
  digitalWrite(8, 1);
  digitalWrite(9, 1);
  digitalWrite(10, 1);
  digitalWrite(11, 1);
  digitalWrite(12, 1);
}
void loop()  {
  if (Serial.available() > 0)
  {
    string = "";
  }
  while (Serial.available() > 0) {
    command = ((byte)Serial.read());

    if (command == ':') {
      break;
    }
    else {
      string += command;
    }
    delay(1);
  }
  if (string == "A") {
    digitalWrite(12, 1);
    delay(1);
  }
  if (string == "B") {
    digitalWrite(11, 1);
    delay(1);
  }
  if (string == "C") {
    digitalWrite(10, 1);
    delay(1);
  }
  if (string == "D") {
    digitalWrite(9, 1);
    delay(1);
  }
  if (string == "E") {
    digitalWrite(8, 1);
    delay(1);
  }
  if (string == "F") {
    digitalWrite(7, 1);
    delay(1);
  }
  if (string == "G") {
    digitalWrite(6, 1);
    delay(1);
  }
  if (string == "H") {
    digitalWrite(5, 1);
    delay(1);
  }
  ///////////////

  if (string == "a") {
    digitalWrite(12, 0);
    delay(1);
  }
  if (string == "b") {
    digitalWrite(11, 0);
    delay(1);
  }
  if (string == "c") {
    digitalWrite(10, 0);
    delay(1);
  }
  if (string == "d") {
    digitalWrite(9, 0);
    delay(1);
  }
  if (string == "e") {
    digitalWrite(8, 0);
    delay(1);
  }
  if (string == "f") {
    digitalWrite(7, 0);
    delay(1);
  }
  if (string == "g") {
    digitalWrite(6, 0);
    delay(1);
  }
  if (string == "h") {
    digitalWrite(5, 0);
    delay(1);
  }
  if (string == "z")
  {
    digitalWrite(12, 1);
    digitalWrite(11, 1);
    digitalWrite(10, 1);
    digitalWrite(9, 1);
    digitalWrite(8, 1);
    digitalWrite(7, 1);
    digitalWrite(6, 1);
    digitalWrite(5, 1);
    delay(1);
  }
}

/code]

In the owrds of some guru round here, bluetooth is just serial without wires. If your code works, I assume it does so by wires connected to the serial port pins 0,1. In that event, all you need do is connect an appropriate bluetooth module to the same pins and send the same data from the phone using the appropriate bluetooth terminal programme.

No my code works WITH Bluetooth but not how I would like it to work.