For example, if I have AAABBBA in a cell, I'd like to get 3A, 3B, 1A from the left.