support trim_ws