Add code for merging strings