Delphi Check If String Python Replace Part