sedj,
Thank you for your response.
If a String is unchangeable, there must a copy of the string, not the copy of its reference, in the above method (so that it can be changed in the method while not affect the string in the main). That means an object (the string) is copied in the method!