From your code, a and A have the same purpose. Both of them are to counter the letters of 'a' and 'A'. So you need only one of them and can delete another one.