On 7/15/12, silvioprog <silvioprog at gmail.com> wrote: > Hi, > > Please see here: http://bugs.freepascal.org/view.php?id=22441 It's not a StringReplace bug. It's probably the handling of LineFeeds without Carriagreturn when setting TMemo.Text that explains your results. See my note in the bugtracker. Bart