Generate All Substrings Of A String Python Replace Spaces With Comma