Python Program Using String Functions In Apex