Repaired length for strings and introduced regression test.