String replacements for indexing