copy a string from source to destination