trim source data