Improved swipe method
Fixed when no string