title: python searching for string starting with letter
body: <pre><code>data = cursor.fetchone ( )
  while data is not None:
      data = str(data)
      print(data)
      data.split(",")
      for index in data:
          if index.startswith("K"):
              print(index, end=';')
      data = cursor.fetchone()
  </code></pre>
  
  <p>Here is the relevant part of my code. The data is retrieved from a mysql server, and is a long string of text separated by commas. I can split the string with the commas fine, however, I then need to search for 4 letter strings. I know they start with K, but when I run the program it only prints the K. How do I get it to print the whole string.<br>
  Sample Data:<br>
  "N54,W130,KRET,KMPI,COFFEE"<br>
  Expected output:<br>
  "N54,W130,KRET,KMPI,COFFEE"<br>
  "KRET;KMPI;"</p>