strings basic 3: fix brittle code