String instance exercise