Use references instead of deep copying the strings
Merge pull request #359 from Dmitry-Me/useReferencesToAvoidDeepCopy

Use references instead of deep copying the strings