string parameter changed to pass by value