Code:
Move (replaces(Character(13),StrOldString,'')) to strNewString  // I'm not 100% sure of the parameter order for "replaces." 
if (StrOldString <> strNewString) begin 
 // do the thing
End 
loop