You're defining the brands in ALL CAPS, and then immediately programatically changing the case before using them. This Rake task would be simpler if they started in the correct case.