fixed issue with saving extra 2 characters when swiping