Replace a string inside a separator