looks like you've picked up a newline (or CR or LF or whatever it's called?) at the end of each element of your string array... dunno how this has happened to you though..?
maybe your souce text file is in a weird format.. (UNIX/DOS?) or it actually has some escaped "\n" is it..?!?
you're not adding an "\n" to each element are you?
no i'm not adding "\n" to any element ... the data in the text file looks like
left_A left_B left_C right_A right_B right_C
and its a normal .txt format. so i really don't know why maya reads the file out this way. i do it with the fgetline command and do not add something else to the data.
so the problem is, that there must be something, because the items i want to work with exist in the scene, but the name chanes because of something.
I've never actually used fgetline but a quick check in the docs reveals that fgetline ADDS a newline onto your string as you are asking it to get a full line..