String length and string compare