updated awk script to trim source data