Code quality

Refactored some of the mega-function in PersonalActivity.  Fixed
warnings about Locale and toLowerCase, though I may need to ponder that
some more.