cleanup string-copy