NEW compatibility tables: calculating length of a string