Fixed printing issue

The issue lied in having "\n"'s right after the input strings.