handling fancyquotes, length, and index