Update String.sub.js

Fixed error with single arguments