Given a string (or an array of strings) it is possible to replace all occurrences of a given string using STR_REPLACE. In the example below, all occurrences of ``sfr'' are replaced with ``spr''. IDL> out = str_replace(in, 'sfr', 'spr')