fixed caps bug #35
shortened code
removed whitespace
added was_lower check for consistency
Merge pull request #36 from swglad/capitalize

fixed capitalizing bug #35