Added trim() function.