I have strings that look like this example: "AAABBBCDEEEEBBBAA"
Any character is possible in the string.
I want to split it to a list like: ['AAA','BBB','C','D','EEEE','BBB','AA']
so every continuous stretch of the same characters goes to separate element of the split list.
I know that I can iterate over characters in the string, check every i and i-1 pair if they contain the same character, etc. but is there a more simple solution out there?