It’s not uncommon to use a post title as an identifier for some functionality. This function will clean up the supplied string and return a nicely formatted one. In short, it removes any whitespace, replaces spaces with hyphens, removes non-alphanumeric characters, and makes everything lowercase.