Returns length of string.
Implemented since LUA doesn't have unicode support in their functions (for example string.len).