Remove Specific Element From String Python Functions