Replaced newlines with spaces on inputs