creating slugs for titles