These functions are self-explanatory. It is possible that a string class maybe implemented in future, and these function replaced.
trim (x) trim.scalar (x)
x