Fixed doc string, eliminated superfluous len() calls.