I need to calculate the length of a string using pure sh shell only. What is happening is that `/bin/sh` is actually a soft link to bash or another shell. Hence `${#STRING}` gives the length of string as it is advance bash feature.

Can someone tell me how I can find length of string?
I am using Solaris 5.10 Sparc architecture