Simplify self-test
Add next_len() which calculates the next length without actually calculating the string