Ad
  • Default User Avatar

    It's a string, they are immutable.

    The s you receive in your function is just a copy of the original.
    And the one you return will be copied as well.
    So it's always a new object anyway.