def is_anagram(str1: str, str2: str) -> bool:
    """
    Checks if the given string is an anagram of another string
    :param str1: String to check
    :param str2: String to check
    :return: bool

    Example:
        >>> is_anagram("waterbottle", "erbottlewat")
        >>> True

    """
    if len(str1) != len(str2):
        return False
    return sorted(str1) == sorted(str2)