Removed extra newlines when printing