Java Replace String Function Python Example Elif