handle case in which one swapString is empty
add tests