I consoled it its right but still test isnt passing

Tell us what’s happening:

All other tests of this lessons are passing but one which i have consoled also print right answer but itsnt passing
Your code so far

// Only change code below this line
function urlSlug(title) {
return title.split(" ").join("-").toLowerCase()

// Only change code above this line
console.log(urlSlug("Winter Is Coming"))

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36.

Challenge: Apply Functional Programming to Convert Strings to URL Slugs

Link to the challenge:

ok i have figuered it myself that space at start needed to be filtered