Allow ttl to be specified as a String instead of Integer