def METHOD_NAME(old, new):
    # we a simple comparision here: strip down spaces and compare the rest
    # TODO: use same XML normalizer on new as used by AWS before comparing strings
    old_stripped = re.sub(r"\s+", " ", old, flags=re.S).rstrip()
    new_stripped = re.sub(r"\s+", " ", new, flags=re.S).rstrip()
    return old_stripped == new_stripped