Fix capitalize and title filters when passed all caps

Capitalize and title filters don't work as expected when passed all caps.