Oops--the above is a big bug. It's possible for some strings not to get this far and that's not right. Needs fixin'!.