substring and the unforgivable error