title: Replace spaces with dashes and make all letters lower-case
body: <p>I need to reformat a string using jQuery or vanilla JavaScript</p>
  
  <p>Let’s say we have <code>"Sonic Free Games"</code>.</p>
  
  <p>I want to convert it to <code>"sonic-free-games"</code>.</p>
  
  <p>So whitespaces should be replaced by dashes and all letters converted to small letters.</p>
  
  <p>Any help on this please?</p>