Java String Manipulation Functions In Python Practice