add trimAfterFirstOccurrence