consistent use of size() over lenght() for strings