fixed an issue for matching blank lines in errorForStringIndex