change string in place