to find lenght of string