Thank you so much for your support.
Yes, the file had new line and I used Atom editor (default editor for all my work) to remove the line. But, the editor kept creating a new line.
So, use notepadd ++ to remove the line and that worked. Now, there is no space between the link and dot or comma.
My be i need to check the editor setting to see why it is creating the new line every time.