Added an innerTrim method