Added utilities for trim functions.