handle undefined sequence string
preserve encapsulation