Substituted char pointers with standard library's strings to simplify code, fixed the problem with random characters at the end of each string received with Winsock recv()