From the NannyMUD documentation

LAST CHANGE

2003-09-16

FUNCTION


NAME

        trim - Trim strings, arrays, and mappings.

SYNTAX

        mixed trim(mixed arg)

DESCRIPTION

        This simulated efun trims strings, arrays, and mappings.

        For strings, it removes spaces, tabs, line feeds and carriage
        returns (' ', '\t', '\n' and '\r') from the ends of a string.

        For arrays, it removes empty elements at the ends of the
        array.

        For mappings, it removes empty indices and their associated
        values, as well as indices with empty values.