Substring Index Python Find And Replace String