Thank you for ideas! AFAIK here are my thoughts on this
Now I realized the point that, those trim functions are not supposed to be used to remove whitespaces in strings, which solves my main concern that NUL is not a 'space' character. On top of that, we still have security concerns (and more) for this change, **and therefore I would like to withdraw this RFC.** Moreover, the proposed new function 'trim_whitespace()' seems to be more reasonable for people to use to strip whitespaces instead of casually using the trim family, which would obviously be a better solution in this case. Thank you for your attention and suggestions! -- Weilin Du
