Java Replace String Function Python Example Code