getSlug now replaces every ' ' with '-'

Was only replacing the first, and the others remained spaces.