Try to do this as a one-liner, a little confused why this doesn't work:
var= balh.getArrayOStrings('sdfsfd').each{ it.replaceAll("herp","derp") }
I call a method that returns an array of string. I loop over them and do a replace and assign back to var, but the modified strings in the array are not assigned back to var. Why not?