How To Replace Parts Of A String In Python