removed debug print and used a more sane way to check for upper case..