Way to store and manipulate string in C programming - Finding the length of string