Adding a helper function to handle strings

This will be used to turn titles into classes for CSS