Added function for slugifying strings.