fixed all pmd violations in Character