import re

strings = [
    "hello",
    "hwqrtedfasdlcvdaltbto",
    "test",
    "helliiiiio",
    "helhcludoo",
    "test helo",
    "kdjhslfjhshhhheeellllllooooosadsf"
]

for x in strings:
    if re.match(r'.*?h[^e]*e[^l]*l[^l]*l[^o]*o',x):
        print ('YES for %s' % x)
    else:
        print ('NO for %s' % x)