title: Python - Cutting the first 5 characters from a string - how to get my new shorter string?
body: <p>I'm very new to Python. I am working on an LCD Raspberry Pi project, displaying strings on an LCD.</p>
  
  <p>I create a string from a command to show a radio track name (line 1 in my code), however this string always starts with 'Name:'. This reads directly from MPD (Music Player Daemon) so nothing I can do about that up front.</p>
  
  <p>As it always starts with the same number of characters, I want to remove '5' characters from the start of this string, and have a new string to play with. Sounds simple to me...but I cannot make this work.</p>
  
  <p>I'm trying:</p>
  
  <pre><code>Print station[5:]
  </code></pre>
  
  <p>based on something I found while searching for the answer, but it appears to do nothing.</p>
  
  <p>Here's the main block of my code: (again, the 5th line was intended to work...)</p>
  
  <pre><code>f=os.popen("echo 'currentsong' | nc localhost 6600 | grep -e '^Name: '")
    station = ""
    for i in f.readlines():
     station += i
     print station[5:]
     str_pad = " " * 16  
     station = str_pad + station  
     for i in range (0, len(station)):  
      lcd_byte(LCD_LINE_1, LCD_CMD)  
      lcd_text = station[i:(i+16)]
      lcd_string(lcd_text,1)  
      time.sleep(0.3)  
      lcd_byte(LCD_LINE_1, LCD_CMD)  
      lcd_string(str_pad,1)
      lcd_byte(LCD_LINE_2, LCD_CMD)
      lcd_string("**Playing**",2)
  </code></pre>
  
  <p>This just continues to show the entire line, such as "Name: Pink Flloyd - Money"</p>
  
  <p>If anyone can help, I'll be truly grateful.</p>
  
  <p>Thanks</p>