Need help (programming a HC-06 bluetooth)

Hi, i’m doing a very simple programme. I want to send a character through my mobile using BlueTerm (for example ‘A’) and the HC-06 to send me another character (for example ‘B’)
This is the code I have made, I am a complete novice in programming a HC-06 so, can anyone tell me if i have made a mistake or something? Advices, suggestions…

BlueTv2.ino (352 Bytes)

#include <SoftwareSerial.h>
SoftwareSerial sw(2,3); //pin 2 es rx, pin 3 es tx en el Software Serial
String info = sw.readString();

void setup() {
  // put your setup code here, to run once:
sw.begin(9600);
Serial.begin(9600);
}

void loop() {
  // put your main code here, to run repeatedly:
 if (info == "A") {
        Serial.println("S");
    }
}

First question - does it actually work? If not, what are you seeing?

SoftwareSerial sw(2,3); //pin 2 es rx, pin 3 es tx en el Software Serial
String info = sw.readString();

Psst. It's silly to think that you can read a string from the software serial instance's pins before you've called the begin() method.

It's also silly to think that you only need to call the function once.