String parsing from serial port