Python Remove Text After Substring Method In Apex