test uppercase or lowercase in bash shell