Added swapSeperator function