change replace to trim