support yaml detection on char sequence