def hex.trim
import bend-kit-http@0.38.5.0/http.bend as Httpimport Base
5375def hex.trim(+s: String) -> String:
5376 match s:
5377 case SNil{}:
5378 SNil{}
5379 case SCon{Chr{+c}, +t}:
5380 Bool.pick(String, Bool.and(U32.is_eq(c, 48), Bool.not(String.is_empty(t))), hex.trim(t), SCon{Chr{c}, t})