remove unneeded trim operation