Family of trim functions