fix string.sh

index starts with 0 instead of 1.
substring, charat, indexOf2 works fine now.
remove indexOf, change indexOf2 to indexOf