Create a Python program to check if a given string has duplicates characters.
String: "helloworld"
def hasDuplicates(s):
    set = set()
    for ch in s:
        if ch in set:
            return True
        set.add(ch)
    return False