Substring Index Python Find And Replace Functions In Python