Added trim functions.