Replace String Using Dict Python Duplicate