s3-lib Move sstring_sub() to it's only user and make static