Amazon task about string replacements