Wrote a bash program to find the length of a given string