Fixed search and replace of the multiple paths on the single string buffer