I'm trying to figure out how to check if certain characters are repeated after each other in a single string, and if so, how often are they repeated.
Example:
str.x = 'abbbjjaaaal'
As the return I need the integer 4, as in this case the longest consecutive repetition of a single character in the string x is a, and it is repeated 4 times.