Optimized BottlesOfBeerFitness to work for any string.