Removing trailing slash for copy