to copy a string from one to another