Changed replace to trim