Fix merging consecutive strings