generating slugs using regex