allow optional trimming