Simple string iteration program for NSS