copying string from source to destination