%dw 2.0
import wrapIfMissing from dw::core::Strings
---
{
  "a": wrapIfMissing(null, "'"),
  "b": wrapIfMissing("", "'"),
  "c": wrapIfMissing("ab", "x"),
  "d": wrapIfMissing("'ab'", "'"),
  "e": wrapIfMissing("/", '/'),
  "f": wrapIfMissing("a/b/c", '/'),
  "g": wrapIfMissing("/a/b/c", '/'),
  "h": wrapIfMissing("a/b/c/", '/')
}