help with serial.read

here is what i am working now it sends the correct format Rxxxx Lxxxxx but there are tied together i'm tiring to splint them if poss. separate inputs and 1 follows the other and each has its own indicator then something to clear the first if needed still hacking at it

#include "MotorMaster.h"

MotorMaster myMotorMaster = MotorMaster();
String inData;
int R;
int L;

void setup()
{
Serial.begin(9600);

myMotorMaster.begin(BUSA);
}

void loop()
{

while (Serial.available() > 0)
{
char recieved = Serial.read();
inData += recieved;
if (recieved == '\n')

{
Serial.println(inData);
if(inData == "+++\n"){

}
inData = "";
}
}
}