This is the code for the UDP server which receives data and prints it.
I am able to receive the message but in the end of the message i get some junk characters also.