trim function non-private
processor