std: add calculating the length of strings and arrays