First, read your post. I know you are frustrated but, how do you expect someone to answer it? People can't read your mind and you didn't post enough to give anyone a clue what you are trying to do. What do you mean by "FIRST word"?
Second, I'll take a wild guess and say you need to replace value=%s with value=\"%s\" (you should always put every attribute in quotes). Look at the string this print statement produces by using the browser's View Source capability, probably invalid HTML.