first occurrence of '\n' is now replaced with '\0' before the packet is 
passed for inspection