Refactor bob to reduce the complexity of isAllCaps and split into hasLetters