String splitter and merger function added