In logging, replaced '\n' with a space + strip()

This should stop adding newlines into the log file