title: how to make a variable case insensitive?
body: <p>I want change the below code to run the command <code>adb -s %s get-state"%(adb_id)</code> such that the adb_id is made <strong>case-insensitive</strong>,it should work  if the adb_id is <code>1281b6a1</code> or <code>1281B6A1</code> ?can anyone provide guidance on how to do that?</p>
  
  <pre><code>import subprocess
  from subprocess import Popen, PIPE, STDOUT
  #adb_id = '1281b6a1'
  adb_id = '1281B6A1'
  cmd = r"C:\adb -s %s get-state"%(adb_id)#cmd  = os.getcwd() + "\\adb devices"
  proc = subprocess.Popen(cmd.split(' '), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  (output,error) = proc.communicate()
  #Check if adb detects any devices
  if error !=  '':
      print "ERROR:%s"%error
  else :
      print "Provided Id is found in ADB as ", output
      print str ( output ).strip()
  </code></pre>