Replace String Using Index In Python 3