Fixed placeholders in replace_string