Fixing issue with strings in excerpts

Plus a bunch of other issues discovered while working on it.