copy the string instead of manipulating the value