Deep copy of string argument. Closes #24.