getline and copy function