Updated string printing in console.log to correctly return completed information