Added *trimall and compact functions to strings module.