Create a slugify method and improve it