I'm using this to remove spaces and special characters and convert characters to lowercase:
''.join(e for e in artistName if e.isalnum()).lower()
I want to:
replace spaces with
-if the string starts with the word
the, then it
So that, for instance, The beatles music! would become beatles-music.