faster, but not fast enough version for scramble strings