Convert String to int

I receive two chars and buffer them in a char array.

Make sure that there are two things in the buffer to receive before you do this:-

if(Serial.available() >2) {  
Str[0] = softSerial.read(); 
Str[1] = softSerial.read();
}