def hex.trim
import bend-kit-http@0.38.2.0/http.bend as Httpimport Base
5383def hex.trim(+s: String) -> String:
5384 match s:
5385 case SNil{}:
5386 SNil{}
5387 case SCon{Chr{+c}, +t}:
5388 Bool.pick(String, Bool.and(U32.is_eq(c, 48), Bool.not(String.is_empty(t))), hex.trim(t), SCon{Chr{c}, t})