Substring giving me errors

Support