Java Replace String Function Python Example Classical Conditioning