The documentation is incorrect. It says: "Description Trim strips blank characters (spaces) at the beginning and end of S and returns the resulting string. Only #32 characters are stripped. " But it will strip everything <= #32, not only #32 as the documentation suggests. The same error is in the docs for TrimLeft() and TrimRight()