Returns a copy of string with all space characters removed from the right end. ⇨ Version 5.32. Will now trim whitespace from arrays and structures. Previously the functions would convert arrays and structures to serialized data and
then trim it. Arrays and structures are now iterated and all values within are trimmed appropriately.