I wish to print "String recieved" if /r or /n is detecetd otherwise i wish to print "Error" .The problem is after detecting the first string i receive an output "String Received" After which i also receive error message. I have doubt if i have implem...