Make the trim()ming more efficient.