Removing newline on console.log snippet