add support for string slicing in h2o.exec