Hey thanks for the replies.
Jason, all my strings look like that. They all end exactly like my example with a "_12May11_mm" The exact amount of characters in that portion never changes (11) because I only change the date and the "mm" are my initials. If another user will be using my profile, the initials may change, but it's always just 2 characters. The amount of characters in the leading portion (My_String_Needs_to_be_truncated) can and will change often, so I wanted to tackle this from the last portion because it is more consistent.
Basically, this is the the format of my mxd file names. When my program updates the mxd, I want to resave the file with the current date and the users initials. I have a line that can do the update, I am just having trouble seperating the file name and then grabbing that first portion into a variable or something. Below is my code for updating the file name. I would like to store the "My_String_Needs_to_be_truncated" into the variable "sitename"
"Path Name:" + outloc + "\\" + sitename + "_" + "_" + strftime("%y%b%d") + "_" + user