changed copying of string