Removed the need for the trim function