Change parameters in a string with the elements of an array