Fixing reference to a string argument

string argument was a temporary objekt