```python
def ascii_value_string(str1):
    """
    Calculates the sum of ASCII values of all characters in a string.

    Args:
        str1: The input string.

    Returns:
        An integer representing the sum of the ASCII values of the characters.
    """
    total_ascii_value = 0
    for character in str1:
        total_ascii_value += ord(character)
    return total_ascii_value

```