```python
import collections

def check_Equality(s):
    """
    Counts all substrings of a string that start and end with the same character.
    
    Args:
        s: The input string.
        
    Returns:
        The total count of substrings starting and ending with the same character.
    """
    char_counts = collections.Counter(s)
    
    total_substrings = 0
    for count in char_counts.values():
        # For a character that appears 'count' times, it can form
        # count * (count + 1) / 2 substrings that start and end with it.
        # This is the formula for the count-th triangular number.
        total_substrings += count * (count + 1) // 2
        
    return total_substrings

```