Handling Junk character when read from dns.cfg