Fix in place modification of source string