Added a trim helper function for strings.