Added doc string to slugify function