updated excerpt length function to account for custom lengths.