When I tried just modifying the reference string I ended up with an empty string after the function call. I assumed that it had to do with strings being immutable. Maybe I just did something stupid?