Searching and parsing data from serial.read

it would be interesting to know if the OP sends \r and \n or not from the console for a start.. that's probably just his pb to start with...