Bug 361: check that trim function exists